Bids and asks + market depth, bid-ask spread, and price slippage (snapshot)
What is this endpoint for?
This endpoint returns the bids and asks snapshot along with the following data:
Market Depth - provides insight into the "depth" of an exchange's order book by aggregating the volume of bids and asks within 0-10% of the best bid or ask, respectively. A higher volume of bids and asks at each level implies more liquidity.
Price Slippage - calculates the potential slippage for a market buy order if it were placed at the time the Order Book Snapshot was taken.
Bid-ask Spread - The bid-ask spread is the difference between the highest price that a buyer is willing to pay for an asset (the bid) and the lowest price that a seller is willing to accept (the ask). A smaller spread implies more liquidity.
Endpoint
Path Parameters
region
Yes
Choose between eu
and us
.
exchange
Yes
Exchange code.
instrument_class
Yes
instrument
Yes
Query Parameters
continuation_token
No
end_time
No
Ending time in ISO 8601 (exclusive). Automatically included in continuation tokens.
limit_orders
No
Number of orders to return on bid and ask side per snapshot.
To retrieve the best bid/ask, set this parameter to 1
Default: 10
page_size
No
sort
No
Return the data in ascending asc
or descending desc
order.
Default: desc.
Automatically included in continuation tokens.
start_time
No
Starting time in ISO 8601 (inclusive). Automatically included in continuation tokens.
slippage
No
Order size (in quote asset) for which to calculate the percentage of slippage.
Default: 0
.
When null
is returned, not enough volume is present on the order book to execute the order.
slippage_ref
No
Price point for which to calculate slippage from. Either from the mid-price (mid_price
) or from the best bid/ask (best
).
Default: mid_price
.
Fields
poll_timestamp
The timestamp at which the raw data snapshot was taken.
poll_date
The date at which the raw data snapshot was taken.
timestamp
The timestamp provided by the exchange. null
when not provided.
bid_volume_x
The volume of bids placed within 0 and x% of the best bid. This is what we call "Market Depth"
ask_volume_x
The volume of asks placed within 0 and x% of the best ask. This is what we call "Market Depth"
spread
The difference between the best bid and the best ask at the time the snapshot was taken. This is what we call "Bid Ask Spread"
mid_price
The mid price between the best bid and the best ask.
ask_slippage
The percentage price slippage for a market buy order placed at the time that the order book snapshot was taken.
bid_slippage
The percentage price slippage for a market sell order placed at the time that the order book snapshot was taken.
asks
The sell orders in the snapshot. If the limit_oders
parameter is used, this will be reflected here. amount
is the quantity of asset to sell, displayed in the base currency. price
is displayed in the quote currency.
bids
The buy orders in the snapshot. If the limit_oders
parameter is used, this will be reflected here. amount
is the quantity of asset to buy, displayed in the base currency. price
is displayed in the quote currency.
Request example
Response example
Last updated