Getting Started
Platform Basics
Writing Strategies
Development Tools
Backtesting System
Advanced Topics
Data and Research
Integrations
DeleteRobot
The DeleteRobot method deletes a live trading bot of the platform account of the API KEY in the request; the bot is given by robotId. A running bot must be stopped first. Deletion cannot be undone.
Returns
json
{
"code":0,
"data":{
"result":0,
"error":null
}
}
- result: Result of the deletion.
- 0: deleted.
- -1: not deleted: the bot does not exist, or it is still running, starting or stopping.
- -2: the bot was deleted, but its docker could not be reached, so the log data was not removed; delete it manually under
logs/storage/<bot ID>/in the docker's directory (e.g.123.db3).
Arguments
| Name | Type | Required | Description |
robotId | number | Yes | ID of the bot to delete, see the |
removeLog | bool | No | Whether to delete the bot's log data on the docker as well; default |