# Capital.com ohlc.event

Independent and unofficial. Not affiliated with or endorsed by any broker or platform named here. Educational only: nothing here is advice, and nothing here recommends a broker or a trade.

This is the markdown version of https://openbrokerapi.com/brokers/capital-com/messages/ohlc-event, written from the same records as that page.

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.

Carries one candlestick bar update for an epic subscribed to with OHLCMarketData.subscribe: the open, high, low and close for one resolution and bar type.

- Message: `ohlc.event`
- Interface: Capital.com WebSocket API
- Group: Live candles
- Status: verified. Source: [open-api.capital.com](https://open-api.capital.com/#section/WebSocket-API/Subscribe-to-OHLC-market-data), checked 2026-10-12.

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. It is in no OpenAPI file on this site and the request builder does not list it.

Note: 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: `ohlc.event`
- 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: [OHLCMarketData.subscribe](https://openbrokerapi.com/brokers/capital-com/messages/ohlcmarketdata-subscribe)

## Fields

- `status` (type not stated, required or not: not stated): OK in the vendor's example.
- `destination` (type not stated, required or not: not stated): Always ohlc.event for this message.
- `payload.resolution` (type not stated, required or not: not stated): The width of the bar, in the same words the subscription takes, such as MINUTE_5.
- `payload.epic` (type not stated, required or not: not stated): The epic the bar is for.
- `payload.type` (type not stated, required or not: not stated): The kind of candlestick. classic in the vendor's example.
- `payload.priceType` (type not stated, required or not: not stated): Which price the bar is built from. bid in the vendor's example.
- `payload.t` (type not stated, required or not: not stated): The time of the bar. In the vendor's example it is a 13 digit number, which reads as Unix time in milliseconds.
- `payload.h` (type not stated, required or not: not stated): The high of the bar.
- `payload.l` (type not stated, required or not: not stated): The low of the bar.
- `payload.o` (type not stated, required or not: not stated): The open of the bar.
- `payload.c` (type not stated, required or not: not stated): The close of the bar.

## Limits that apply at Capital.com

- Headline limit: 10/s per user
  - Scope: user
  - Status: verified. Source: [open-api.capital.com](https://open-api.capital.com/), checked 2026-09-18.
  - Note: Orders and new positions: 1 per 0.1 s. POST /session: 1 a second per API key. Demo: 1000 an hour for POST /positions and /workingorders.

## Related Capital.com messages: Live candles

- [OHLCMarketData.subscribe](https://openbrokerapi.com/brokers/capital-com/messages/ohlcmarketdata-subscribe): Subscribes 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.unsubscribe](https://openbrokerapi.com/brokers/capital-com/messages/ohlcmarketdata-unsubscribe): Stops candlestick bar updates. You unsubscribe from what you name: an epic alone stops every resolution and bar type for that epic.

## More on Capital.com

- [All Capital.com messages](https://openbrokerapi.com/brokers/capital-com/messages): 7 documented here, grouped by what they do.
- [Capital.com API quickstart](https://openbrokerapi.com/brokers/capital-com/quickstart)
- [All Capital.com error codes](https://openbrokerapi.com/errors/capital-com)
- [Capital.com API page](https://openbrokerapi.com/brokers/capital-com): The full record: access, authentication, limits and the source for each.

## Licence and how to cite

The records behind this page are all rights reserved. This file is the page itself, at its own address, in another format. It is not part of the CC BY 4.0 downloads listed at https://openbrokerapi.com/data. Quote from it with a link to the page.

Cite as: Capital.com ohlc.event. Broker API Hub, https://openbrokerapi.com/brokers/capital-com/messages/ohlc-event, newest check 2026-10-12.

Where you rely on a single figure, cite the source and the checked date printed beside it as well. Where this page and a broker's own documentation differ, the documentation wins.
