diff --git a/README.md b/README.md index 02b79fd..c48d87f 100644 --- a/README.md +++ b/README.md @@ -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) ```