closeDCABot
Close a running DCA bot by settling remaining assets in BIT, base, or quote token. Select close_mode to control conversion.
Instructions
Closes a running DCA bot. You must specify a close_mode to determine how remaining assets are settled:
1 (DCA_BIT_MODE): settle in BIT
2 (DCA_BASE_MODE): convert all to base tokens
3 (DCA_QUOTE_MODE): convert all to quote token
The bot must be in a closeable state. Bots that are currently in the middle of an investment cycle may not be closeable (status_code=503).
Rate limit: 3 qps per UID.
Agent hint: Use close_mode=3 (DCA_QUOTE_MODE) if the user wants to convert everything back to the quote coin (e.g., USDT).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bot_id | Yes | ||
| close_mode | Yes |