Skip to main content

知识星球

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)

Source distribution for qmtbt 0.2.5
File Size Uploaded Provenance
qmtbt-0.2.5.tar.gz 6.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for qmtbt 0.2.5
File Interpreter ABI Platform
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

Security for qmtbt 0.2.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page