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.
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) is recorded as a broker with an API of its own. FXCM is recorded as a broker with an API of its own.
- This site has not yet documented individual endpoints for FOREX.com / StoneX Trading (City Index) or for FXCM.
- This site has decoded no error codes for FOREX.com / StoneX Trading (City Index) and no error codes for FXCM.
- The limits register holds 1 limit record for FOREX.com / StoneX Trading (City Index) and no limit records for FXCM. Each limit record carries its own scope.
- The FOREX.com / StoneX Trading (City Index) record holds a demo claim, verified at its source. The FXCM record holds a demo claim, verified at its source. The wording of each is in the Demo row below.
- A quickstart is built here for neither yet.
FOREX.com / StoneX Trading (City Index) and FXCM, field by field
| Field | FOREX.com / StoneX Trading (City Index) | FXCM |
|---|---|---|
| Kind | Broker with its own API | Broker with its own API |
| API family | REST, Streaming | FIX, Java API, ForexConnect |
| How you get access | Open 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 it | By 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 |
| Demo | Partial: 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 |
| Authentication | A 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 |
| Streaming | Lightstreamer, 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 depth | Price 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 |
| None recorded |
| Endpoints documented here | None yet | None yet |
| Error codes decoded here | None yet | None yet |
| Official documentation | docs.labs.gaincapital.com | fxcm.com |
Go deeper on each side
FOREX.com / StoneX Trading (City Index)
- FOREX.com API page, the full record
- No FOREX.com API quickstart is built here yet
- FOREX.com API limits, in the table above
- No FOREX.com API error codes are decoded here yet
FXCM
- FXCM API page, the full record
- No FXCM API quickstart is built here yet
- FXCM API limits, in the table above: none recorded
- No FXCM API error codes are decoded here yet
- Does FXCM still offer a REST API?
All comparisons. New to this? Getting started with API trading.