Capital.com messages
7 documented messages of the Capital.com WebSocket API, grouped by what they do. Each has its fields, what arrives and the source it was read from.
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.
These are messages and subscriptions carried by a connection that stays open, not HTTP endpoints: none has a method or a path. For that reason they are in no OpenAPI file on this site and the request builder does not list them. A message that is not listed is not recorded here, which is not evidence that it does not exist.
Connection
1 message
Live candles
3 messages
- ohlc.eventCarries one candlestick bar update for an epic subscribed to with OHLCMarketData.subscribe: the open, high, low and close for one resolution and bar type.
- OHLCMarketData.subscribeSubscribes to candlestick bar updates for a list of epics, at chosen resolutions and for a chosen bar type. An answer confirms each combination, then an ohlc.event message arrives for each update.
- OHLCMarketData.unsubscribeStops candlestick bar updates. You unsubscribe from what you name: an epic alone stops every resolution and bar type for that epic.
Live prices
3 messages
- marketData.subscribeSubscribes to live price updates for a list of epics. Capital.com's page gives 40 as the most epics. An answer confirms each epic, then a quote message arrives for each price update.
- marketData.unsubscribeStops live price updates for a list of epics. An answer confirms each epic that was unsubscribed.
- quoteCarries one price update for an epic subscribed to with marketData.subscribe: the bid, the offer, the size at each and the time.