get https://api.amberdata.com/markets/spot/analytics/bid-ask-spread
This endpoint allows users to explore the bid-ask spread for a specific trading pair or underlying asset across one or more exchanges. It provides both the absolute dollar spread (based on the best bid and offer) and the spread as a percentage of the mid-price.
RESPONSE DATA
Field | Type | Description |
---|---|---|
payload.metadata.api-version | string | Version of the API. |
payload.data[index].pair | string | The currency pair in question. |
payload.data[index].exchange | string | The name of the exchange. |
payload.data[index].bestBid(Ask)Price | number | This represents the best bid/ask price at the top of the order book. |
payload.data[index].midPrice | number | This represents the average of the best bid price and best ask price found at the top of the order book. |
payload.data[index].spread | number | This represents the absolute dollar spread between the best bid price and best ask price found at the top of the order book. |
payload.data[index].spreadPercent | number | This represents the spread of the best bid price and best ask price found at the top of the order book, in terms of the mid price. |
payload.data[index].timestamp | timestamp | The timestamp of the depth snapshot. |