GetRobotList
The GetRobotList method is used to get the list of live trading bots under the FMZ Quant Trading Platform account corresponding to the API KEY in the request.
Returns
json
{
"code": 0,
"data": {
"result": {
"all": 1,
"concurrent": 0,
"robots": [{
"charge_time": 1731654846,
"date": "2024-11-12 14:05:29",
"end_time": "2024-11-15 14:56:32",
"fixed_id": 4509153,
"id": 591026,
"is_sandbox": 0,
"name": "Test",
"node_guid": "45891bcf3d57f99b08a43dff76ee1ea1",
"node_id": 4519153,
"node_public": 0,
"profit": 0,
"public": 0,
"refresh": 1731651257000,
"start_time": "2024-11-15 14:56:30",
"status": 3,
"strategy_id": 411670,
"strategy_isowner": true,
"strategy_language": 0,
"strategy_name": "Test",
"strategy_public": 0,
"uid": "105ed6e511cc977921610fdbb7e2a1d6",
"wd": 0
}]
},
"error": null
}
}
- robots: Live trading bot information
- group_id: Live trading bot group ID; if the live trading bot is in the default group, the
group_idfield is not included.
- group_id: Live trading bot group ID; if the live trading bot is in the default group, the
Arguments
| Name | Type | Required | Description |
offset | number | No | Offset setting for pagination query. |
length | number | No | Data length setting for pagination query. |
robotStatus | number | No | Specify the status of live trading bots to query, refer to Extended API Interface "Live Trading Status Codes", pass |
label | string | No | Specify the custom label of live trading bots to query, can filter all live trading bots containing this label. |
keyWord | string | No | Query keyword. |
Remarks
Taking the Extended API Interface "Authentication Method" in Python language as an example:
print(api('GetRobotList')): Get all live trading bot information.
print(api('GetRobotList', 'member2')): Print all live trading bot information with custom label member2.
print(api('GetRobotList', 0, 5, -1, 'member2')): Pagination query, starting from offset 0, returning at most 5 live trading bots with label member2.