getAllOrders
Retrieve all cryptocurrency trading orders from your Aster Finance account, including active, canceled, and filled orders, filtered by symbol and time range.
Instructions
Get all account orders; active, canceled, or filled.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endTime | No | ||
| limit | No | ||
| orderId | No | ||
| startTime | No | ||
| symbol | Yes |
Implementation Reference
- src/index.ts:659-660 (handler)The handler for the 'getAllOrders' tool. It calls the shared makeRequest function to perform a signed GET request to the Aster Futures API endpoint '/fapi/v1/allOrders'.case 'getAllOrders': return makeRequest('GET', '/fapi/v1/allOrders', args, true);
- src/index.ts:384-394 (schema)Input schema definition for the getAllOrders tool, specifying parameters like symbol (required), orderId, timestamps, and limit.inputSchema: { type: 'object', properties: { symbol: { type: 'string' }, orderId: { type: 'number' }, startTime: { type: 'number' }, endTime: { type: 'number' }, limit: { type: 'number' }, }, required: ['symbol'], },
- src/index.ts:381-395 (registration)Registration of the getAllOrders tool in the MCP server's listTools response, including name, description, and input schema.{ name: 'getAllOrders', description: 'Get all account orders; active, canceled, or filled.', inputSchema: { type: 'object', properties: { symbol: { type: 'string' }, orderId: { type: 'number' }, startTime: { type: 'number' }, endTime: { type: 'number' }, limit: { type: 'number' }, }, required: ['symbol'], }, },