ig_get_working_orders
Retrieve all active working orders on IG Trading to monitor and manage open trades in forex, indices, and commodities efficiently.
Instructions
Get all working orders
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/services/ig-service.js:263-271 (handler)Core handler function that fetches all working orders from the IG API endpoint '/workingorders'async getWorkingOrders() { try { const response = await this.apiClient.get('/workingorders', 2); return response.data; } catch (error) { logger.error('Failed to get working orders:', error.message); throw error; } }
- src/services/mcp-service.js:646-655 (handler)MCP tool execution handler that invokes IGService.getWorkingOrders() and returns JSON-formatted responsecase 'ig_get_working_orders': const orders = await igService.getWorkingOrders(); return { content: [ { type: 'text', text: JSON.stringify(orders, null, 2), }, ], };
- src/services/mcp-service.js:269-275 (registration)Tool registration in the TOOLS array, including name, description, and empty input schemaname: 'ig_get_working_orders', description: 'Get all working orders', inputSchema: { type: 'object', properties: {}, }, },