Capital.com quote
Carries one price update for an epic subscribed to with marketData.subscribe: the bid, the offer, the size at each and the time.
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.
This is a message of the Capital.com WebSocket API, not an HTTP endpoint. It has no method and no path: it is sent as JSON over an open WebSocket connection.
The vendor's page documents this message by one example and gives no table of its fields, so no type is recorded and nothing is said about which fields are always present.
The message
- Name
- quote
- Direction
- Event, sent by the server
- Carried by
- WebSocket. Capital.com's page says to ping the service at least once every 10 minutes to keep the connection alive.
- WebSocket address
- wss://api-streaming-capital.backend-capital.com/connect
- Also sent in answer to
Fields
The vendor's page does not say which of these fields are required or always present.
| Name | Type | Description |
|---|---|---|
| status | Not stated | OK in the vendor's example. |
| destination | Not stated | Always quote for this message. It is what tells a price update apart from an answer to a request. |
| payload.epic | Not stated | The epic the price is for. |
| payload.product | Not stated | The product. CFD in the vendor's example. |
| payload.bid | Not stated | The bid price. A number in the vendor's example. |
| payload.bidQty | Not stated | The size available at the bid. A number in the vendor's example. |
| payload.ofr | Not stated | The offer price. A number in the vendor's example. |
| payload.ofrQty | Not stated | The size available at the offer. A number in the vendor's example. |
| payload.timestamp | Not stated | The time of the price. In the vendor's example it is a 13 digit number, which reads as Unix time in milliseconds. |
Limits that apply at Capital.com
| Limit | Value | Scope | Source |
|---|---|---|---|
| Headline limit | 10/s per user | user | open-api.capital.comchecked |