StopRobot
Stops a robot of the account; stopping does not close positions.
Examples
Stop robot 123.
python
# api() is the function in the Python example on the signature authentication page
r = api('StopRobot', 123)
print(r['data']['result']) # output: 2 (stopping)Returns
| Type | Description |
number |
|
Arguments
| Name | Type | Required | Description |
robotId | number | Yes | Robot ID; see |
Remarks
While the robot is starting or stopping (robot is busy), or when its docker is offline (docker not found), an error with code 6 is returned.