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
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ig_get_working_orders"
}
}Input 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 response
case '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 schema
name: 'ig_get_working_orders', description: 'Get all working orders', inputSchema: { type: 'object', properties: {}, }, },