Barfinex
All exchanges
IG Markets

IG Markets

Coming SoonForex Brokers
connectorType: "ig_markets"

Forex and CFD trading provider

Connection Architecture

IG Markets
WebSocket / REST
Connector
libs/exchange-ig-markets
Provider
:8081/api
Detector
Advisor
Studio

The connector receives data from the exchange and feeds it to Provider (port 8081). From there — to Detector, Advisor, and Studio.

Technologies

Transport
WebSocketREST
Authentication
API Key + Username + Password
Data Format
JSON

Best for

  • FX and CFD traders needing the widest possible instrument universe under a single regulated broker.
  • Strategies spanning forex, equity CFDs, and commodity CFDs in a unified execution environment.
  • Traders who need both spread betting (UK) and CFD accounts from the same provider.

Connect via code

1Environment variables (.env)

IG_MARKETS_API_KEY=your_key_here
IG_MARKETS_USERNAME=your_username_here
IG_MARKETS_PASSWORD=your_password_here

2Connector configuration

// config/config.provider.json
{
  "provider": {
    "connectors": [
      {
        "connectorType": "ig_markets",
        "enabled": true,
        "key": "${IG_MARKETS_API_KEY}",
        "markets": [
          { "marketType": "spot", "symbols": [{ "name": "BTCUSDT" }] }
        ],
        "subscriptions": [
          { "type": "PROVIDER_MARKETDATA_CANDLE", "symbols": ["BTCUSDT"], "intervals": ["min1", "h1"], "active": true },
          { "type": "PROVIDER_MARKETDATA_TRADE", "symbols": ["BTCUSDT"], "active": true },
          { "type": "PROVIDER_MARKETDATA_ORDERBOOK", "symbols": ["BTCUSDT"], "active": true }
        ]
      }
    ]
  }
}

3Verify and query data

# Verify connection
curl -H "Authorization: Bearer $PROVIDER_API_TOKEN" \
  https://localhost:8081/api/exchanges/runtime-proof

# Candles (last 7 days)
curl -H "Authorization: Bearer $PROVIDER_API_TOKEN" \
  "https://localhost:8081/api/candles/ig_markets/spot/BTCUSDT/h1?days=7"

Available via Barfinex API

/api/candles/ig_markets/...
/api/trades/ig_markets/...
/api/orderbook/ig_markets/...
/api/account/ig_markets/...
/api/symbols/ig_markets/...
/api/assets/ig_markets/...

Studio graphical setup — in development, coming in the next release.

Important

Uses the same three-credential authentication as IG Group (API key + username + password) with session token refresh required.
IG Markets and IG Group share the same underlying REST API — ensure you target the correct account environment.
Supported Markets
SpotMargin
Websitewww.ig.com
Connect in Studio(soon)
Exchange Website

Let’s Get in Touch

Have questions or want to explore Barfinex? Send us a message.