queryOrder
Check cryptocurrency order status on Aster Finance Futures API using symbol and optional order identifiers to monitor trading positions.
Instructions
Check an order's status.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orderId | No | ||
| origClientOrderId | No | ||
| symbol | Yes |
Implementation Reference
- src/index.ts:635-636 (handler)Handler for the 'queryOrder' tool. Makes a signed GET request to '/fapi/v1/order' endpoint on Aster futures API to query an order's status.case 'queryOrder': return makeRequest('GET', '/fapi/v1/order', args, true);
- src/index.ts:299-307 (schema)Input schema definition for 'queryOrder' tool: requires 'symbol', optional 'orderId' or 'origClientOrderId'.inputSchema: { type: 'object', properties: { symbol: { type: 'string' }, orderId: { type: 'number' }, origClientOrderId: { type: 'string' }, }, required: ['symbol'], },
- src/index.ts:296-308 (registration)Registration of the 'queryOrder' tool in the MCP server's listTools response, including name, description, and input schema.{ name: 'queryOrder', description: "Check an order's status.", inputSchema: { type: 'object', properties: { symbol: { type: 'string' }, orderId: { type: 'number' }, origClientOrderId: { type: 'string' }, }, required: ['symbol'], }, },