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 receives data from the exchange and feeds it to Provider (port 8081). From there — to Detector, Advisor, and Studio.
Technologies
Transport
WebSocketREST
Authentication
Username + PasswordData Format
JSONBest 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
# 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/forex_com/spot/BTCUSDT/h1?days=7"
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
Websitewww.forex.com
Connect in Studio(soon)
Exchange Website