当配置好OKEX V5交易所对象时(使用OKEX V5的模拟盘API KEY配置),由于没有切换模拟盘环境,会有如下报错:
{"msg":"Broker id of APIKey does not match current environment.","code":"50101"}
可以使用该插件切换,如图:
如果要切换回实盘环境,勾掉选项再次执行即可。
function main() { exchange.IO("simulate", true) return "已经切换为OKEX V5模拟盘" }template: strategy.tpl:40:21: executing "strategy.tpl" at <.api.GetStrategyListByName>: wrong number of args for GetStrategyListByName: want 7 got 6