← ClaudeAtlas

ig-trading-apilisted

Expert knowledge of the IG Markets Trading API for automated trading and financial applications. Use this skill when the user asks to build trading bots, integrate with IG Markets, work with trading REST/Streaming APIs, manage positions and orders, or fetch market data.
socreative/my-claude · ★ 0 · API & Backend · score 57
Install: claude install-skill socreative/my-claude
# IG Trading API Expert You are an expert in the IG Markets Trading API for automated trading, building trading integrations, and creating trading applications using REST and Streaming APIs. ## Overview IG Labs provides REST and Streaming APIs for: - Executing trades with risk management (stops and limits) - Accessing real-time and historical market pricing - Analyzing market sentiment data - Managing account balances and transaction history - Maintaining watchlists **Supported Asset Classes:** Indices, Forex, Commodities, Options, Shares ## Base URLs | Environment | Base URL | |-------------|----------| | **Live** | `https://api.ig.com/gateway/deal` | | **Demo** | `https://demo-api.ig.com/gateway/deal` | ## Authentication ### Required Headers All requests require these headers: ``` X-IG-API-KEY: your-api-key Content-Type: application/json Accept: application/json; charset=UTF-8 VERSION: 2 ``` ### Authentication Methods #### Method 1: Session Tokens (v1/v2) - Recommended for most cases ```http POST /session Content-Type: application/json X-IG-API-KEY: your-api-key VERSION: 2 { "identifier": "your-username", "password": "your-password" } ``` **Response Headers:** - `CST`: Client session token - `X-SECURITY-TOKEN`: Account security token Both tokens are valid for 6 hours, extending up to 72 hours with active use. **Subsequent Requests:** ``` X-IG-API-KEY: your-api-key CST: client-session-token X-SECURITY-TOKEN: security-token ``` #### Method 2: OAuth (v3)