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'
}
Metadata
Release files for qmtbt 0.2.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| qmtbt-0.2.5.tar.gz | 6.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| qmtbt-0.2.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.6 kB
Release files / qmtbt-0.2.5.tar.gz
| Download URL | qmtbt-0.2.5.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e010c294ad83f4dd25929c96bee54c508bde10b9dd3d232117fca8d2693a23d1
|
|
BLAKE2b-256 checksum How to use checksums |
d143564f7f742e80387b14be3f607b5bbba55779353cfc8c579f09f8482d69ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.0.1 CPython/3.10.11 Windows/10
|
Release files / qmtbt-0.2.5-py3-none-any.whl
| Download URL | qmtbt-0.2.5-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f589623900c9e53a00c65c88973e49e64aa3368a42b08bfeb2c89db8c8c7c914
|
|
BLAKE2b-256 checksum How to use checksums |
061713f7017017d207f7dba3808608a1724b0ef7d9abfb494ecbef42f64ef4f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.0.1 CPython/3.10.11 Windows/10
|