For the complete documentation index, see llms.txt. This page is also available as Markdown.

OHLCV

This data is included in the following Kaiko packages:

  • Level 1 & Level 2 Data [Level 1 Aggregations Tier]

  • Level 1 & Level 2 Data [Level 1 Tick-Level Tier]

  • Level 1 & Level 2 Data [Level 2 Aggregations Tier]

  • Level 1 & Level 2 Data [Level 2 Tick-Level Tier]

CeFi spot ticker packs.

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
gateway-v0-http.kaiko.ovh
https://gateway-v0-http.kaiko.ovh/api/stream/aggregates_ohlcv_v1

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 .

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

cURL requests are intended for testing purposes only.

Information from this endpoint can be accessed through Google BigQuery. To get started, read our guide.

For more advanced users, you can access our full SDK here, where you'll find more coding languages, examples and guidance.

Response Example

Last updated

Was this helpful?