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

VWAP

This data is included in the following Kaiko packages:

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

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

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

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

DeFi spot ticker packs.

What is this endpoint for?

This endpoint delivers VWAP (volume-weighted average price) 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_vwap_v1

Request parameters

Parameter
Description
Examples

aggregate

The period you would like the VWAP 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.

code

The instrument code.

price

The price for the period (USD).

exchange

The exchange the VWAP is referencing.

tsEvent

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

https://github.com/kaikodata/kaiko-sdk-examples/blob/master/python/code-example/vwap_request.py

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?