Type/to search
Getting Started
Welcome to FMZ Quant Trading Platform
Quick Start
Key Security
Platform Basics
Account and Billing
Live Robot Billing and Top-up
Sub-accounts
Exchange
General Protocol
Local Credential Files
Exchange-Specific Notes
Securities and Futures
Crypto
Docker
Strategy Library
Live Trading
Writing Strategies
Development Tools
Backtesting System
Advanced Topics
Data and Research
Integrations

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

NameTypeRequiredDescription

robotId

number

Yes

ID of the bot to delete, see the GetRobotList method.

removeLog

bool

No

Whether to delete the bot's log data on the docker as well; default true.