Best bids and asks (top of book)
What is this endpoint for?
Top-of-Book is also known as best bids and asks. It offers the best bid and best asks on an order book, provided in real-time.
Endpoints
gateway-v0-grpc.kaiko.ovhgateway-v0-http.kaiko.ovhhttps://gateway-v0-http.kaiko.ovh/api/stream/market_update_v1Request parameters
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
algo-btc
Response fields
amount
When
BEST-BID: The quantity of the base asset that the buyer is willing to purchaseWhen
BEST-ASK: The quantity of the base asset the seller has available for sale
class
Instrument class, empty when not mapped.
code
Instrument code, empty when not mapped.
exchange
Instrument exchange code.
sequenceId
Sequence ID for event. Sortable in lexicographic order.
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: algo-btc
base asset = algo
quote asset = btc
price:1.96e-06
For each unit of Algo, the buyer is willing to pay 1.96e-06 BTC, equal to 0.00000196 when converted to a decimal number
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: algo-btc
base asset = algo
quote asset = btc
price:1.97e-06
For each unit of Algo, the buyer is willing to accept 1.97e-06 BTC, equal to 0.00000197 when converted to a decimal number
tsExchange
The timestamp provided by the exchange for the data. Where exchanges do not provide this data, we fill this with tsCollection.
This applies to the following exchanges:
Bitfinex (
bfnx) perpetual-future & spotBinance US (
bnus) spotBitvavo (
bvav) spot
tsCollection
The timestamp for when Kaiko received the data from the exchange.
tsEvent
The timestamp the data became available in the Kaiko system.
updateType
BEST_BID - The current best bid
BEST_ASK - The current best ask
additionalProperties
N/A. Always null
id
N/A. Always null
Request examples
This example demonstrates how to request historical data using replay. The maximum amount of data you can request for one replay cannot exceed a total of 24 hours in hours, seconds, and minutes.
Replay data is available on a 72-hour rolling basis and should only be used to retrieve missed data. If full history is required, please use Rest API or CSV deployment methods.
cURL requests are intended for testing purposes only.
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?
