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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"symbol": "<symbol>"
},
"name": "queryOrder"
}
}Input 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'], }, },