FOREX.com is a regulated forex and CFD trading broker (a brand of StoneX Group) offering REST and FIX APIs for automated trading and market data access. The REST API, hosted at ciapi.cityindex.com/TradingAPI, enables algorithmic traders to authenticate sessions, retrieve real-time streaming prices via Lightstreamer, execute buy/sell orders across 80+ forex and CFD markets, and manage account balances, positions, and order history programmatically.
Commission-free trading with average spreads of 1.00 pip on EUR/USD; minimum deposit $100
Spreads from 0.2 pips on EUR/USD with $7 USD commission per $100k notional; minimum deposit $100
Authenticate and manage API sessions for the FOREX.com trading platform.
Retrieve client and trading account details including account IDs, balance, and available margin.
Search and retrieve market details for tradeable instruments across 80+ forex and CFD markets.
Access real-time and historical price data for forex and CFD markets. Historical OHLC data and tick history supported.
Place and manage trade orders on the FOREX.com platform. Supports market orders, stop/limit orders, and order cancellation.
List and manage open trading positions on the FOREX.com platform.
REST API using JSON over HTTP at base URL https://ciapi.cityindex.com/TradingAPI/
Header-based authentication with UserName and Session ID obtained from /session endpoint
AppKey required — obtained by contacting support.en@forex.com
Real-time bid/ask/offer pricing via Lightstreamer streaming
Historical OHLC price data up to 4,000 records per request
Order execution for Buy/Sell with stop-loss, take-profit, and price tolerance slippage control
Account balance, available margin, open positions, and historical trade access
FIX API available for institutional clients