Skip to main content

No project description provided

Project description

知识星球

bt-qmt-store

Backtrader QMT Store

1. 安装

pip install qmtbt

2. 使用

import backtrader as bt
from qmtbt import QMTStore

cerebro = bt.Cerebro()

store = QMTStore()

data = store.getdata(dataname='600115.SH', timeframe=bt.TimeFrame.Days, fromdate=datetime(2022, 1, 1), todate=datetime(2023, 9, 6), dividend_type='front')
cerebro.adddata(data)

timeframe

支持以下时间周期:

period_map = {
  bt.TimeFrame.Days: '1d',
  bt.TimeFrame.Minutes: '1m',
  bt.TimeFrame.Ticks: 'tick'
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qmtbt-0.2.5.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qmtbt-0.2.5-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file qmtbt-0.2.5.tar.gz.

File metadata

  • Download URL: qmtbt-0.2.5.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.10.11 Windows/10

File hashes

Hashes for qmtbt-0.2.5.tar.gz
Algorithm Hash digest
SHA256 e010c294ad83f4dd25929c96bee54c508bde10b9dd3d232117fca8d2693a23d1
MD5 50deee9e9810f9e82fe24e780efebcf5
BLAKE2b-256 d143564f7f742e80387b14be3f607b5bbba55779353cfc8c579f09f8482d69ef

See more details on using hashes here.

File details

Details for the file qmtbt-0.2.5-py3-none-any.whl.

File metadata

  • Download URL: qmtbt-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.10.11 Windows/10

File hashes

Hashes for qmtbt-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 f589623900c9e53a00c65c88973e49e64aa3368a42b08bfeb2c89db8c8c7c914
MD5 96835545d081df6c4fbfe1057c95c111
BLAKE2b-256 061713f7017017d207f7dba3808608a1724b0ef7d9abfb494ecbef42f64ef4f1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page