Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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; } }
  • 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), }, ], };
  • 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: {}, }, },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kea0811/ig-trading-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server