Skip to content

Commit

Permalink
Merge pull request #6 from zsrl/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
zsrl authored Jul 14, 2024
2 parents 530563c + 6739c1e commit 6aa368e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
# bt-qmt-store
Backtrader QMT Store

## 1. 安装
```shell
pip install qmtbt
```
## 2. 使用

```python
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)
```

0 comments on commit 6aa368e

Please sign in to comment.