Barfinex
Loading
All exchanges
FOREX.com

FOREX.com

Coming SoonForex Brokers
connectorType: "forex_com"

Global forex trading platform by StoneX

Connection Architecture

FOREX.com
WebSocket / REST
Connector
libs/exchange-forex-com
Provider
:8081/api
Detector
Advisor
Studio

The connector feeds exchange data to Provider. Detector receives market data, Studio receives read views, and Advisor sees only signed candidate evidence.

Technologies

Transport
WebSocketREST
Authentication
Username + Password
Data Format
JSON

Best for

  • Forex traders seeking a heavily regulated multi-jurisdiction broker for US, UK, or Canadian accounts.
  • Algo strategies targeting 80+ FX pairs with tight spreads on majors and competitive rates on exotics.
  • Multi-asset CFD portfolios combining FX, commodities, and equity indices in one broker.

Connect via code

1Environment variables (.env)

FOREXCOM_USERNAME=your_username_here
FOREXCOM_PASSWORD=your_password_here
FOREXCOM_ACCOUNT_ID=your_account_id_here

2Connector configuration

// config/config.provider.json
{
  "provider": {
    "connectors": [
      {
        "connectorType": "forex_com",
        "enabled": true,

        "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

Public verification
1. Configure credentials in the private Provider environment.
2. Verify connector status in the internal Studio/Provider console.
3. Use Barfinex public pages to inspect market data.

Operator Provider commands and tokens remain in internal runbooks only.

Available via Barfinex API

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

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

Important

Authentication is session-based using username + password + account ID; tokens expire and must be refreshed.
US residents are subject to FIFO rule and 50:1 maximum leverage — strategy logic must account for these constraints.
Supported Markets
SpotMargin
Connect in Studio(soon)
Exchange Website

Let’s Get in Touch

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