cancel_all_account_orders
Cancel all active orders for a specific account on Paper's trading platform using this tool. Provide the account ID to execute the action and manage trading activities efficiently.
Instructions
Cancel all orders for an account
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accountId | Yes | Account ID |
Implementation Reference
- src/index.ts:478-480 (handler)Handler implementation for the 'cancel_all_account_orders' tool. Executes a DELETE API request to `/orders/account/${accountId}` to cancel all open orders for the specified account.case 'cancel_all_account_orders': response = await api.delete(`/orders/account/${args.accountId}`); break;
- src/index.ts:271-281 (schema)Tool definition including name, description, and input schema requiring 'accountId'.{ name: 'cancel_all_account_orders', description: 'Cancel all orders for an account', inputSchema: { type: 'object', properties: { accountId: { type: 'string', description: 'Account ID' } }, required: ['accountId'] } },
- src/index.ts:388-392 (registration)Registration of all tools list, which includes 'cancel_all_account_orders' via the 'tools' array.server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools }; });