Aggregated Quotes
Last updated
Last updated
Aggregated Quotes provides computed real-time price that is based on the best bids and best asks across a highly-vetted selection of exchanges, meaning you can get a comprehensive view of demand, without the need to monitor exchanges individually. The exchanges used in this calculation are vetted, meaning only those that are part of the Kaiko Exchange Ranking are included. The best bids are aggregated over 10-second intervals and delivered every second. This means you receive the best bids and asks from the previous 10 seconds, updated every second.
Note that Kaiko Exchange Ranking is updated every quarter, so the exchanges used in the calculation may change.
Parameter | Description | Examples | Mandatory? |
---|---|---|---|
Configuring multiple instruments
To configure multiple instruments in the same stream, provide the code
as a comma separated list eg btc-usd,eth-usd.
Field | Description |
---|---|
Make sure to read our Python quick-start guide before starting.
instrument_class
spot
code
btc-usd
includeUnvettedPrice
This parameter is set to false
by default and not included in the code example.
Setting this field to true
includes best bids and asks from exchanges that are not included in the Kaiko Exchange Ranking.
This parameter is helpful when an instrument you need is not covered by any exchange on the Kaiko Exchange ranking. It also serves as a backup for instruments covered by only one exchange, ensuring you still receive a price in case that exchange drops off the ranking when it's updated.
If you set this parameter true
, the calculation will include all exchanges covered by Kaiko and this price will appear in a separate unvetted
section of the response.
"includeUnvettedPrice": true
aggregate
The time period over which the best bid or ask was calculated. This is always 10s
.
instrumentClass
The class of the instrument.
code
The instrument code.
eventType
BEST_BID
- The best bid from the period
BEST_ASK
- The best ask from the period
tsEvent
The timestamp the data became available in the Kaiko system.
price
When BEST-BID
: The price per unit of the base that the buyer is willing to pay in the quote asset, represented as a scientific notation
Example: btc-usd
base asset = btc
quote asset = usd
price
: 60555.00271626198
For each unit of btc
, the buyer is willing to pay 60555.00271626198
USD.
When BEST-ASK
: The price per unit of the base that the seller is willing to accept in the quote asset, represented as a scientific notation
Example: btc-usd
base asset = btc
quote asset = usd
price
: 60556.00224312413
For each unit of btc
, the buyer is willing to accept 60556.00224312413 USD.
volume
When BEST-BID
: The quantity of the base asset that the buyer is willing to purchase
When BEST-ASK
: The quantity of the base asset the seller has available for sale
The class of the instrument(s) . Explore instruments in the Instrument Explorer or by using the endpoint.
The Kaiko code for the instrument(s). The class of the instrument(s) . Explore codes in the Instrument Explorer or by using the endpoint.