Barfinex
All exchanges
IG Group

IG Group

Coming SoonEuropean Brokers
connectorType: "ig_group"

CFD and spread betting provider

Connection Architecture

IG Group
WebSocket / REST
Connector
libs/exchange-ig-group
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
Features
Session Token

Best for

  • Professional CFD traders requiring access to a wide universe of global instruments.
  • Spread bettors based in the UK looking for tax-efficient market exposure.
  • Options traders seeking listed and OTC contracts on equities and indices.

Connect via code

1Environment variables (.env)

IG_API_KEY=your_key_here
IG_USERNAME=your_username_here
IG_PASSWORD=your_password_here

2Connector configuration

// config/config.provider.json
{
  "provider": {
    "connectors": [
      {
        "connectorType": "ig_group",
        "enabled": true,
        "key": "${IG_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_group/spot/BTCUSDT/h1?days=7"

Available via Barfinex API

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

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

Important

Authentication requires all three credentials simultaneously: API key, username, and password.
The IG API issues a session token that expires and must be refreshed regularly.
Demo and live environments use separate API endpoints.
Supported Markets
SpotFutures
Founded1974
HeadquartersLondon, UK
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.