get_orders
Retrieve all active orders including pending and processing orders from your Trading 212 investment account for portfolio tracking and management.
Instructions
Retrieve all active orders (pending, processing, etc.)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:605-615 (handler)Handler for 'get_orders' MCP tool in src/index.ts. Calls client.getOrders().
case 'get_orders': { const orders = await client.getOrders(); return { content: [ { type: 'text', text: JSON.stringify(orders, null, 2), }, ], }; } - src/client.ts:153-155 (handler)Implementation of getOrders() in client.ts. Fetches orders from the /equity/orders endpoint.
async getOrders(): Promise<Order[]> { return this.request('/equity/orders', {}, z.array(OrderSchema)); } - src/index.ts:117-124 (registration)Registration of 'get_orders' tool in the tool list in src/index.ts.
{ name: 'get_orders', description: 'Retrieve all active orders (pending, processing, etc.)', inputSchema: { type: 'object', properties: {}, }, },