closeFMartBot
Closes a running futures Martingale trading bot by canceling all pending orders and closing the position. Requires the bot ID to stop.
Instructions
Closes (stops) a running futures Martingale trading bot. The bot will cancel all pending orders and close the position.
The bot_id can be obtained from the createFMartBot response or from getFMartDetail. Only bots in a running state can be closed.
Rate limit: 10 requests per second per UID.
Agent hint: Use this to stop a running Martingale bot. The bot_id is required and can be found in the createFMartBot response. The stop_type indicates the reason for closing. After closing, use getFMartDetail to check the final PnL and close reason.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bot_id | Yes | ||
| stop_type | No |