Type/to search
Getting Started
Platform Basics
Writing Strategies
Development Tools
Backtesting System
Advanced Topics
Data and Research
Extended API Interface
AI Integration
Create ApiKey
Authentication Methods
Extended API Interface Details
GetAccount
GetNodeList
DeleteNode
GetExchangeList
GetPlatformList
GetStrategyList
GetRobotGroupList
GetRobotList
GetRobotDetail
GetRobotLogs
NewRobot
RestartRobot
StopRobot
CommandRobot
DeleteRobot
PluginRun
pub
Extended API Interface Return Codes
Live Trading Status Codes

Gets the dockers the account can use, including its own dockers and the platform's public dockers.

Examples

List all dockers and whether they are online.

python
# api() is the function in the Python example on the signature authentication page r = api('GetNodeList') for node in r['data']['result']['nodes']: print(node['id'], node['name'], node['online'])

Returns

TypeDescription

object

On success data.result holds the docker count all and the docker array nodes; fields are in the attributes table below.

Arguments

NameTypeRequiredDescription

offset

number

No

Paging offset, 0 by default.

limit

number

No

Page size; omitted or less than or equal to 0 returns all.

Attributes

NameTypeDescription

all

number

Total number of dockers (public dockers included).

nodes

array

Array of dockers; the fields of each element are in the rows below (self-explanatory fields are not listed).

nodes[].id

number

Docker ID, the node of a robot configuration.

nodes[].build

string

Version number.

nodes[].version

string

Detailed version information of the docker.

nodes[].online

bool

Whether the docker is online.

nodes[].is_owner

bool

true for a private docker, false for a public one.

nodes[].public

number

0 for a private docker, 1 for a public one.

nodes[].loaded

number

Load: the number of strategy instances running on the docker.

nodes[].city

string

City.

nodes[].region

string

Region.

nodes[].wd

number

Whether the offline alert is on; 0 means off.

Remarks

Dockers rented with one click have extra fields starting with ecs_ and unit_, recording the server's provider, configuration and state, and the billing period and price.

Example response
json
{ "code": 0, "data": { "result": { "all": 1, "nodes": [{ "build": "3.7", "city": "...", "created": "2024-11-08 09:21:08", "date": "2024-11-08 16:37:16", "forward": "...", "guid": "...", "host": "node.fmz.com:9902", "id": 123, "ip": "...", "is_owner": true, "loaded": 0, "name": "MacBook-Pro-2.local", "online": true, "os": "darwin/amd64", "peer": "...", "public": 0, "region": "...", "tunnel": false, "version": "...", "wd": 0 }] }, "error": null } }