Capital.com vs cTrader API
The same fields from the Capital.com record and the cTrader Open API 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. cTrader Open API is a platform API, offered through the brokers that carry the platform.
- This site documents 36 endpoints for Capital.com and no endpoints for cTrader Open API. That counts what has been documented here, not what each API offers.
- This site has decoded 24 error codes for Capital.com and 53 error codes for cTrader Open API.
- The limits register holds 1 limit record for Capital.com and 2 limit records for cTrader Open API. Each limit record carries its own scope.
- The Capital.com record holds a demo claim, verified at its source. The cTrader Open API 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 both.
Capital.com and cTrader Open API, field by field
| Field | Capital.com | cTrader Open API |
|---|---|---|
| Kind | Broker with its own API | Platform API, offered by many brokers |
| API family | REST, WebSocket | Protobuf over TCP/WebSocket, JSON over TCP/WebSocket, Python package, C# package |
| How you get access | Enable 2FA, then Settings > API integrations > Generate new key, with a custom key password.Capital.com Public APIchecked | Register an app at openapi.ctrader.com; Spotware reviews new apps, so describe your use case in detail.Creating a new applicationchecked |
| Who can use it | Any Capital.com account (demo or live) with 2FA enabled. Regional limits not published.Capital.com Public APIchecked | Supported by all trading accounts of any cTrader affiliated brokers by default, which means both demo and live accounts.cTrader Open APIchecked |
| Demo | Yes: separate demo base URL.Capital.com Public APIchecked | Yes: separate demo endpoint; demo and live environments are fully separated.Proxies and endpointschecked |
| 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 | OAuth 2.0 authorisation code flow: the auth code lives 1 minute, the access token 30 days. Scopes are accounts, which is read only, and trading, which is full.Account authenticationchecked |
| 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 | Yes: spot quotes, depth of market and execution events on the same connection, at 50 requests a second per connection (5 for historical data) with a heartbeat every 10 seconds. Host live1.p.ctrader.com port 5035, SSL mandatory for TCP and WebSocket. Spotware recommends at most two connections, one demo and one live, each carrying an unlimited number of accounts of that type.Messageschecked |
| 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 | Trend bars and ticks by from/to timestamp with optional count; deals by range with maxRows. Cash flow history max 1 week per request.Spotware OpenApiMessages.protochecked |
| Limits |
|
|
| Endpoints documented here | 36 | None yet |
| Error codes decoded here | 24 | 53 |
| Official documentation | open-api.capital.com | help.ctrader.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
cTrader Open API
- cTrader API page, the full record
- cTrader API quickstart, credentials to a first call
- cTrader API limits, in the table above
- cTrader API error codes, each with its fix
- cTrader Open API with Python
All comparisons. New to this? Getting started with API trading.