@vibek/cli 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/config.example.toml +1 -0
- package/index.js +469 -468
- package/package.json +1 -1
- package/vibek-package.json +1 -1
package/README.md
CHANGED
|
@@ -63,6 +63,10 @@ trader_front = "tcp://交易前置地址:端口"
|
|
|
63
63
|
app_id = "你的-app-id"
|
|
64
64
|
production_mode = true
|
|
65
65
|
|
|
66
|
+
[account.market]
|
|
67
|
+
record_instruments = ["IC2609.CFFEX"]
|
|
68
|
+
tick_time_mode = "realtime"
|
|
69
|
+
|
|
66
70
|
[account.trading]
|
|
67
71
|
max_order_volume = 1
|
|
68
72
|
max_position = 2
|
|
@@ -71,6 +75,8 @@ allow_short = true
|
|
|
71
75
|
```
|
|
72
76
|
|
|
73
77
|
`production_mode` 选择 CTP API 的生产/评测模式;它不决定策略使用 Paper 还是 Live。
|
|
78
|
+
SimNow 7x24 等回放行情前置需将 `tick_time_mode` 设为 `"replay"`;券商实时行情保持默认
|
|
79
|
+
`"realtime"`,以继续拒绝陈旧或明显超前的 tick。
|
|
74
80
|
换号时修改 `[account]`,然后执行 `vibek daemon restart`。
|
|
75
81
|
|
|
76
82
|
### 2. 校验配置
|