FOREX.com REST API
type: WebAPI
description: 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.
documentation: https://www.forex.com/en/trading-tools/api-trading/
terms of service: https://www.forex.com/en-us/help-and-support/pricing-and-fees/
provider: FOREX.com
  type: Organization
  parent organization: StoneX Group
offers: Spread-Only Account
  type: Offer
  description: Commission-free trading with average spreads of 1.00 pip on EUR/USD; minimum deposit $100
offers: RAW Pricing Account
  type: Offer
  description: Spreads from 0.2 pips on EUR/USD with $7 USD commission per $100k notional; minimum deposit $100
has API: FOREX.com Session API
has API: FOREX.com Account API
has API: FOREX.com Market API
has API: FOREX.com Pricing API
has API: FOREX.com Order API
has API: FOREX.com Position API
feature list: REST API using JSON over HTTP at base URL https://ciapi.cityindex.com/TradingAPI/
feature list: Header-based authentication with UserName and Session ID obtained from /session endpoint
feature list: AppKey required — obtained by contacting support.en@forex.com
feature list: Real-time bid/ask/offer pricing via Lightstreamer streaming
feature list: Historical OHLC price data up to 4,000 records per request
feature list: Order execution for Buy/Sell with stop-loss, take-profit, and price tolerance slippage control
feature list: Account balance, available margin, open positions, and historical trade access
feature list: 80+ forex and CFD markets supported
feature list: FIX API available for institutional clients
available language: Python
available language: C++
available language: Perl
available language: VB.NET
keywords: Forex
keywords: FX Trading
keywords: CFD Trading
keywords: Algorithmic Trading
keywords: Financial Services
keywords: Trading APIs
keywords: Currency Exchange

FOREX.com Session API
type: WebAPI
description: Authenticate and manage API sessions for the FOREX.com trading platform.
entry point: EntryPoint
  http method: POST
  content type: application/json

FOREX.com Account API
type: WebAPI
description: Retrieve client and trading account details including account IDs, balance, and available margin.
entry point: EntryPoint
  http method: GET

FOREX.com Market API
type: WebAPI
description: Search and retrieve market details for tradeable instruments across 80+ forex and CFD markets.
entry point: EntryPoint
  http method: GET
entry point: EntryPoint
  http method: GET

FOREX.com Pricing API
type: WebAPI
description: Access real-time and historical price data for forex and CFD markets. Historical OHLC data and tick history supported.
entry point: EntryPoint
  http method: GET
entry point: EntryPoint
  http method: GET

FOREX.com Order API
type: WebAPI
description: Place and manage trade orders on the FOREX.com platform. Supports market orders, stop/limit orders, and order cancellation.
entry point: EntryPoint
  http method: POST
  content type: application/json
entry point: EntryPoint
  http method: POST
  content type: application/json
entry point: EntryPoint
  http method: POST
  content type: application/json
entry point: EntryPoint
  http method: POST
  content type: application/json

FOREX.com Position API
type: WebAPI
description: List and manage open trading positions on the FOREX.com platform.
entry point: EntryPoint
  http method: GET