Capital.com WebSocket API
The Capital.com WebSocket API streams real-time market data, supporting up to 40 concurrent instruments and OHLC candlestick subscriptions for low-latency trading applications.
Capital.com WebSocket API is one of 8 APIs that Capital.com Public API publishes on the APIs.io network, described by an AsyncAPI event-driven specification.
Tagged areas include Market Data, Streaming, Trading, and WebSocket. The published artifact set on APIs.io includes API documentation and an AsyncAPI specification.
This event API exposes 2 operations across 1 channel, and defines 18 schemas. It is described by AsyncAPI 2.6.0, at version 1.0.0.
The API connects through 2 servers: api-streaming-capital.backend-capital.com/connect (wss), demo-api-streaming-capital.backend-capital.com/connect (wss).
Metadata
The identity and technical contract details declared by the specification.
Channels & Operations 2
Across 1 channel, the API surfaces 2 operations. Each is listed below with its action, channel, parameters, and response codes.
Messages & Schemas 18
The contract defines 18 schemas that model the data carried by its messages. The most detailed are MarketDataUnsubscribeFrame (5 properties), OHLCMarketDataUnsubscribeFrame (5 properties), OHLCMarketDataSubscribeFrame (5 properties), MarketDataSubscribeFrame (5 properties). Each schema is shown below with its type and property counts.
Specification
The full machine-readable AsyncAPI contract behind this narrative.
Source
More from Capital.com Public API 7
Other APIs Capital.com Public API publishes across the network.