get_order
Retrieve detailed information about a specific Trading 212 order using its unique identifier to track status, view execution details, and monitor investment activity.
Instructions
Get detailed information about a specific order by order ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orderId | Yes | The unique identifier of the order |
Implementation Reference
- src/index.ts:617-628 (handler)The tool handler logic for 'get_order' which parses the input and calls the client's getOrder method.
case 'get_order': { const { orderId } = OrderIdInputSchema.parse(args); const order = await client.getOrder(orderId); return { content: [ { type: 'text', text: JSON.stringify(order, null, 2), }, ], }; } - src/client.ts:157-159 (helper)The API client implementation that executes the HTTP request for 'get_order'.
async getOrder(orderId: number): Promise<Order> { return this.request(`/equity/orders/${orderId}`, {}, OrderSchema); }