Broker API HubMenu

FOREX.com vs FXCM API

The same fields from the FOREX.com / StoneX Trading (City Index) record and the FXCM record, side by side. No winner is picked: which one suits you depends on what you are building.

Independent and unofficialNewest check

Risk warning: CFDs and spread bets are complex instruments and come with a high risk of losing money rapidly due to leverage. You can lose money on these products, and each provider publishes its own loss figure under FCA rules. You should consider whether you understand how they work and whether you can afford to take the high risk of losing your money. Automated and API trading can amplify losses through bugs, connectivity failures and runaway orders.

What the two records show

Differences you can see in the records themselves. These are counts of what this site holds, not a verdict on either API.

FOREX.com / StoneX Trading (City Index) and FXCM, field by field

FieldFOREX.com / StoneX Trading (City Index)FXCM
KindBroker with its own APIBroker with its own API
API familyREST, StreamingFIX, Java API, ForexConnect
How you get accessOpen and fund a standard account, then request API access from support; an AppKey is emailed if accepted.FOREX.com API Tradingchecked Free SDKs from FXCM GitHub; sign the EULA and apply for a demo account. Support at api@fxcm.com.GitHub fxcm/ForexConnectAPIchecked
Who can use itBy application: you must describe your expertise, language, goal and expected volume, and sign API terms.StoneX API Getting Startedchecked Trading Station account. FIX needs a minimum of 5,000 pounds or dollars. UK page dated 25 Jun 2025.FXCM API Tradingchecked
DemoPartial: the StoneX API documentation describes two environments, Live and Pre-Production, each with its own API and streaming address. It says most users work on Live and that only some users, depending on user type and circumstances, are given Pre-Production access. An account in one environment is not recognised in the other. The documentation does not say that a retail demo account can use the API.StoneX API documentation, Getting Startedchecked Yes: ForexConnect connects to demo and real Trading Station accounts.GitHub fxcm/ForexConnectAPIchecked
AuthenticationA session token. POST your user name, password and the AppKey you were issued to /v2/Session, then send the returned session token and your user name with every request as the request headers Session and UserName. Passing them in the query string is marked obsolete. The documentation says a token is valid for at least 20 minutes, and an expired one is signalled by HTTP 401. Subscribing to the streams uses the user name and the session token as its credentials.StoneX API documentation, API basicschecked FIX, the Java API and ForexConnect only. No REST API is listed on FXCM's current API pages, so the legacy REST token flow this site described is recorded as no longer listed rather than retired.FXCM Socket REST API specchecked
StreamingLightstreamer, a third party streaming protocol, over long lived HTTP connections and not WebSocket as documented. Streams cover prices, news headlines, client account margin, orders and quotes, grouped into adapters. Each adapter needs one HTTP connection plus one control connection. The documentation says the servers still run Lightstreamer 7.4.1 and that clients should use that version of the Lightstreamer SDK.StoneX API documentation, architecturechecked ForexConnect pushes live prices; the retired legacy REST API streamed over Socket.IO.FXCM Socket REST API specchecked
History depthPrice bars: max 4,000 per request (default 1,000). Trade history: max 200 results per call, filter by from date.GAIN Capital API docs: GetPriceBarsBeforeDatechecked Candles: up to 10,000 per request with optional from and to. Depth of history and a trade history endpoint not documented.FXCM Socket REST API specschecked
Limits
  • Request throttle: 500 requests per 5 s, HTTP 429 above it. Requests from one client application. The page does not say whether the count is per session, per AppKey or per IP addressdocs.labs.gaincapital.comchecked
None recorded
Endpoints documented hereNone yetNone yet
Error codes decoded hereNone yetNone yet
Official documentationdocs.labs.gaincapital.comfxcm.com

Go deeper on each side

All comparisons. New to this? Getting started with API trading.