diff --git a/README.md b/README.md index c48d87f..63bb794 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +![知识星球](./zsxq.png) + # bt-qmt-store Backtrader QMT Store @@ -18,3 +20,14 @@ 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 +支持以下时间周期: + +```python +period_map = { + bt.TimeFrame.Days: '1d', + bt.TimeFrame.Minutes: '1m', + bt.TimeFrame.Ticks: 'tick' +} +``` diff --git a/zsxq.png b/zsxq.png new file mode 100644 index 0000000..404c483 Binary files /dev/null and b/zsxq.png differ