资源加载中... loading...

切换OKEX_V5模拟盘交易终端插件

Author: 发明者量化-小小梦, Date: 2021-06-08 10:58:17
Tags: OKEX

交易终端OKEX_V5模拟盘切换插件

当配置好OKEX V5交易所对象时(使用OKEX V5的模拟盘API KEY配置),由于没有切换模拟盘环境,会有如下报错:

{"msg":"Broker id of APIKey does not match current environment.","code":"50101"}

可以使用该插件切换,如图:

  • 点击添加按钮:

    img

  • 选择插件:

    img

  • 执行插件

    img

  • 立即执行

    img

  • 模拟盘资产就读取出来了

    img

如果要切换回实盘环境,勾掉选项再次执行即可。


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