countdownCancelAll
Cancel all open cryptocurrency trading orders after a specified countdown period to manage risk and automate order cleanup on the Aster exchange.
Instructions
Auto-cancel all open orders.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| countdownTime | Yes | Countdown time in milliseconds. | |
| symbol | Yes |
Implementation Reference
- src/index.ts:653-654 (handler)Handler implementation for the countdownCancelAll tool. It makes a signed POST request to the /fapi/v1/countdownCancelAll endpoint on the Aster (Binance Futures) API with the provided arguments.case 'countdownCancelAll': return makeRequest('POST', '/fapi/v1/countdownCancelAll', args, true);
- src/index.ts:349-356 (schema)Input schema defining the parameters for the countdownCancelAll tool: symbol (string, required) and countdownTime (number in ms, required).inputSchema: { type: 'object', properties: { symbol: { type: 'string' }, countdownTime: { type: 'number', description: 'Countdown time in milliseconds.' }, }, required: ['symbol', 'countdownTime'], },
- src/index.ts:346-357 (registration)Registration of the countdownCancelAll tool in the MCP server's listTools response, including name, description, and input schema.{ name: 'countdownCancelAll', description: 'Auto-cancel all open orders.', inputSchema: { type: 'object', properties: { symbol: { type: 'string' }, countdownTime: { type: 'number', description: 'Countdown time in milliseconds.' }, }, required: ['symbol', 'countdownTime'], }, },