GetRobotDetail
方法用于获取请求中的API KEY
对应的优宽量化交易平台账号下的实盘详细信息,所要被获取详细信息的实盘Id为robotId
参数指定的实盘Id。
{
"code": 0,
"data": {
"result": {
"robot": {
"charge_time": 1732520672,
"charged": 1184400,
"consumed": 87500000,
"date": "2021-10-29 16:14:56",
"debug": "{\"Nano\":1732518261405924960,\"Stderr\":\"\",\"Stdout\":\"\"}",
"end_time": "2024-11-25 15:04:21",
"favorite": {
"added": false,
"type": "R"
},
"fixed_id": 123,
"hits": 0,
"id": 123,
"is_deleted": 0,
"is_manager": true,
"is_sandbox": 0,
"name": "测试",
"node_id": 123,
"pexchanges": {
"-100": "Futures_CTP"
},
"phash": {},
"plabels": {
"-100": "Futures_CTP"
},
"priority": 0,
"profit": 0,
"public": 0,
"refresh": 1732518244000,
"robot_args": "[]",
"start_time": "2024-11-25 15:03:38",
"status": 4,
"strategy_args": "...",
"strategy_exchange_pairs": "[60,[-100],[\"FUTURES_CTP\"]]",
"strategy_id": 123,
"strategy_last_modified": "2024-10-10 18:09:05",
"strategy_name": "测试",
"strategy_public": "0",
"summary": "...",
"uid": "03dd49e1de9c29f7a02ae015c65ef136",
"username": "...",
"wd": 0
}
},
"error": null
}
}
{"-100":"Futures_CTP","-101":"Futures_CTP"}
。robotId
参数用于指定所要获取详细信息的实盘Id,可以用GetRobotList
方法获取账号下实盘的信息,其中包含实盘Id。
robotId true number
strategy_exchange_pairs
属性说明,用以下数据为例:
[86400,[123456],["FUTURES"]]
其中第一个数据86400
,代表实盘设置的默认K线周期为1天,即86400秒。
[123456]
为实盘配置的交易所对象的eid
列表(按添加顺序)。
["FUTURES"]
为实盘配置的交易所对象设置的交易对(按添加顺序与eid
一一对应),[86400,[123456],["FUTURES"]]
对应[K线周期,交易所对象id列表,交易对列表]
。