OHLCV

What is this endpoint for?

This Stream delivers the OHLCV for an instrument on an exchange in real-time.

Endpoints

gateway-v0-grpc.kaiko.ovh

Request parameters

Parameter
Description
Examples

aggregate

The period you would like the OHLCV aggregation to be calculated over.

1m

instrumentCriteria

A nested object to configure following properties for your stream:

  • exchange (String) - The code(s) for the exchange(s)

  • instrument_class (String) - The class(es) of the instrument(s) .

  • code (String) - The Kaiko code for the instrument.

Explore instruments, codes and exchanges in the Instrument Explorer or Reference Data.

cbse

spot

btc-usd

Configuring a wildcard

A wildcard allows you to request all information we have on a specific instrument, class, or exchange in the same stream. Use a * in place of the relevant exchange, instrument, or class parameter.

For example, the configuration below would deliver trades for BTC/USD across all exchanges where it’s supported:

exchange: * class: spot instrument: btc-usd

Response fields

Field
Description

aggregate

The period of calculation.

class

The class of instrument.

close

Closing price of interval. null when no trades reported.

exchange

The exchange the OHLCV is referencing.

high

Closing price of interval. null when no trades reported.

low

Lowest price during interval. null when no trades reported.

open

Opening price of interval. null when no trades reported.

code

The instrument code.

timestamp

The timestamp for the interval.

uid

The unique ID for this delivery.

volume

Volume traded in interval. 0 when no trades reported.

sequenceId

Not applicable. Null

Request examples

Response Example

Last updated

Was this helpful?