Broker API HubMenu

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.

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.

Capital.com and FXCM, field by field

FieldCapital.comFXCM
KindBroker with its own APIBroker with its own API
API familyREST, WebSocketFIX, Java API, ForexConnect
How you get accessEnable 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 itAny 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
DemoYes: separate demo base URL.Capital.com Public APIchecked Yes: ForexConnect connects to demo and real Trading Station accounts.GitHub fxcm/ForexConnectAPIchecked
AuthenticationPOST /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
StreamingWebSocket 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 depthCandles: 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
LimitsNone recorded
Endpoints documented here36None yet
Error codes decoded here24None yet
Official documentationopen-api.capital.comfxcm.com

Go deeper on each side

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