Skip to content

Commit

Permalink
Merge pull request #9 from zsrl/develop
Browse files Browse the repository at this point in the history
perf: 更新文档
  • Loading branch information
zsrl authored Aug 1, 2024
2 parents 02bc7aa + abedd92 commit 6042dcd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
![知识星球](./zsxq.png)

# bt-qmt-store
Backtrader QMT Store

Expand All @@ -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'
}
```
Binary file added zsxq.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6042dcd

Please sign in to comment.