Capital.com vs FXCM API
The same fields from the Capital.com 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.
- Capital.com 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 documents 36 endpoints for Capital.com and no endpoints for FXCM. That counts what has been documented here, not what each API offers.
- This site has decoded 24 error codes for Capital.com and no error codes for FXCM.
- The limits register holds 1 limit record for Capital.com and no limit records for FXCM. Each limit record carries its own scope.
- The Capital.com 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 Capital.com only.
Capital.com and FXCM, field by field
| Field | Capital.com | FXCM |
|---|---|---|
| Kind | Broker with its own API | Broker with its own API |
| API family | REST, WebSocket | FIX, Java API, ForexConnect |
| How you get access | Enable 2FA, then Settings > API integrations > Generate new key, with a custom key password.Capital.com Public APIchecked | 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 | Any Capital.com account (demo or live) with 2FA enabled. Regional limits not published.Capital.com Public APIchecked | Trading Station account. FIX needs a minimum of 5,000 pounds or dollars. UK page dated 25 Jun 2025.FXCM API Tradingchecked |
| Demo | Yes: separate demo base URL.Capital.com Public APIchecked | Yes: ForexConnect connects to demo and real Trading Station accounts.GitHub fxcm/ForexConnectAPIchecked |
| Authentication | POST /session with the X-CAP-API-KEY header plus login credentials returns CST and X-SECURITY-TOKEN, sent on later calls. The session expires after 10 minutes of inactivity.Capital.com Public APIchecked | 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 | WebSocket wss://api-streaming-capital.backend-capital.com/connect, maximum of 40 epics per subscription; the session lasts 10 minutes and is kept alive with ping.Capital.com Public APIchecked | ForexConnect pushes live prices; the retired legacy REST API streamed over Socket.IO.FXCM Socket REST API specchecked |
| History depth | Candles: max 1,000 per request (default 10), MINUTE to WEEK. Activity history: max 1 day per from/to call. Transactions default to last 10 minutes.Capital.com API referencechecked | 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 | 36 | None yet |
| Error codes decoded here | 24 | None yet |
| Official documentation | open-api.capital.com | fxcm.com |
Go deeper on each side
Capital.com
- Capital.com API page, the full record
- Capital.com API quickstart, credentials to a first call
- Capital.com API limits, in the table above
- Capital.com API error codes, each with its fix
- Capital.com API endpoints, each with its source
- Get your Capital.com trade history into a spreadsheet
- Capital.com API with Python
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.