Bid-ask spread (aggregation)
Last updated
Last updated
This endpoint returns the following metrics, averaged for the requested period.
Bid volume
Ask volume
Bid-ask spread
Price Slippage
We are unable to collect the full 10% snapshot from all exchanges we cover. Thus, for some exchanges, 'Market Depth' does not accurately portray the exchange's order book volume.
region
Yes
Choose between eu
and us
.
exchange
Yes
Exchange code.
instrument_class
Yes
instrument
Yes
end_time
No
Ending time in ISO 8601 (exclusive). Automatically included in continuation tokens.
interval
No
The interval parameter is suffixed with s
, m
, h
or d
to specify seconds, minutes, hours or days, respectively.
Any arbitrary value between one second and one day can be used, as long as it sums up to a maximum of 1 day. The suffixes are s
(second), m
(minute), h
(hour) and d
(day).
Default 1h
.
page_size
No
Number of snapshots to return data for. (default: 10, max: 100). See Pagination Automatically included in continuation tokens.
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
.
poll_timestamp
The timestamp at which the interval begins.
bid_volume_x
The average volume of bids placed within 0 and x% of the best bid over a specified interval.
ask_volume_x
The average volume of asks placed within 0 and x% of the best ask over a specified interval.
spread
The average difference between the best bid and the best ask over a specified interval.
mid_price
The average mid price between the best bid and the best ask over a specified interval
ask_slippage
The average percentage of price slippage for a market buy order over a specified interval.
bid_slippage
The average percentage of price slippage for a market sell order over a specified interval.
See
Instrument class
.
See
Instrument code
.
See
"Snapshots" show a point-in-time view generated every 30 seconds, whereas "aggregations" show an aggregation of all 30-second snapshots from the period requested.