创建于: 2019-04-13 00:01:13,
更新于:
6
1437
1.传参: 第一个是robotid,第二个是setting json串
- setting具体内容如下
{
“name”: “test”,
“args”: [
[“a”, 123],
[“b”, true],
[“c”, “cdd”],
[“d”, 1],
[“e”, “$$\(__enc__\)$$iBQxY2BxuazEWfHaYOJsuA==”],
[“OpMode”, 0, 133497],
[“MaxSpace”, 0.5, 133497],
[“SlidePrice”, 0.10000000000000001, 133497],
[“MaxAmount”, 1, 133497],
[“RetryDelay”, 500, 133497],
[“MAType”, 0, 133497],
[“Interval”, 300, 133497],
[“F_SlidePrice”, 2, 133497],
[“lv”, 0.5, 133497],
[“max_open_lv”, 1, 133497],
[“max_cover_lv”, 1, 133497],
[“_GetMinStocks”, 0.01, 133497],
[“isCTAshowTable”, false, 133497]
],
“strategy”: 143940,
“period”: 60,
“node”: 82339,
“appid”: “a”,
“exchanges”: [{
“pid”: 43793,
“pair”: “BTC_USDT”
}, {
“pid”: 43793,
“pair”: “ETH_USDT”
}, {
“pid”: 42247,
“pair”: “ETC_BTC”
}]
}
对照着文档 RestartRobot 的示例,setting格式应该是没问题的。setting里的args是仿照着robotDetail里的robot_args参数写的,不知道对不对
“robot_args” => “[[“a”,0],[“b”,false],[“c”,“c”],[“d”,1],[“e”,“$$\(__enc__\)$$iBQxY2BxuazEWfHaYOJsuA==”],[“OpMode”,0,133497],[“MaxSpace”,0.5,133497],[“SlidePrice”,0.1,133497],[“MaxAmount”,1,133497],[“RetryDelay”,500,133497],[“MAType”,0,133497],[“Interval”,300,133497],[“F_SlidePrice”,2,133497],[“lv”,0.5,133497],[“max_open_lv”,1,133497],[“max_cover_lv”,1,133497],[“_GetMinStocks”,0.01,133497],[“isCTAshowTable”,false,133497]]”