Skip to content

Commit

Permalink
Merge pull request #251 from ctpbee/dev
Browse files Browse the repository at this point in the history
update readme
  • Loading branch information
somewheve committed Oct 12, 2023
2 parents b9b21d8 + 2ac2bba commit 5afb76e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -153,10 +153,10 @@ from ctpbee import CtpBee, Mode
app = CtpBee("openctp", __name__, refresh=True, work_mode=Mode.DISPATCHER)
```

client端:
`client`:
通过配置interface为`local`, CONNECT_INFO里面的内容也要相应更改.

DEMO: 推荐参阅[openctp分发实现](examples/openctp)
`DEMO`: 推荐参阅[openctp分发实现](examples/openctp)

## 遇到问题

Expand Down
4 changes: 2 additions & 2 deletions examples/backtest/looper_example.py
Expand Up @@ -4,7 +4,7 @@

data = pd.read_csv("kline.csv")
data = data.drop("Unnamed: 0", axis=1)
data = list(reversed(data.to_dict("index").values()))
data = [list(reversed(data.to_dict("index").values()))]


class DoubleMaStrategy(CtpbeeApi):
Expand Down Expand Up @@ -72,6 +72,6 @@ def on_init(self, init: bool):
size=10, pricetick=1))
strategy = DoubleMaStrategy("ma")
app.add_extension(strategy)
app.add_data(*[data])
app.add_data(*data)
app.start()
result = app.get_result(report=True, auto_open=True)

0 comments on commit 5afb76e

Please sign in to comment.