Skip to main content
GET
/
analytics
/
futures-perpetuals
/
depth
/
bid-ask-spread
Bid Ask Spread
curl --request GET \
  --url https://api.amberdata.com/markets/derivatives/analytics/futures-perpetuals/depth/bid-ask-spread \
  --header 'x-api-key: <api-key>'
{
  "status": 200,
  "title": "OK",
  "description": "Successful request",
  "payload": {
    "data": [
      {
        "bestAskPrice": 96589.6,
        "bestBidPrice": 96222.19,
        "exchange": "deribit",
        "midPrice": 96405.895,
        "pair": "BTC-PERPETUAL",
        "spread": 367.4100000000035,
        "spreadPercent": 0.3811074001232015,
        "timestamp": 1746144000000
      }
    ]
  }
}

Authorizations

x-api-key
string
header
required

Query Parameters

instrument
string
default:btc
required

[Required] The currency for the futures or perpetual instruments. [Examples] btc | btc-perpetual

exchange
string
default:deribit
required

[Required] The exchange for the associated bid ask spread. [Examples] deribit | okex | binance | binanceus

startDate
string

[Optional] Payload only includes data after this date (inclusive). [Formats] seconds | milliseconds | iso8601 [Examples] 1578531600 | 1578531600000 | 2025-02-27

endDate
string

[Optional] Payload only includes data up to this date (exclusive). [Formats] seconds | milliseconds | iso8601 [Examples] 1578531600 | 1578531600000 | 2025-02-28

timeFormat
string
default:hr

[Optional] Time format of the timestamps in the return payload. [Defaults] milliseconds | ms* | iso | iso8601 | hr | human_readable

Response

200

status
integer
Example:

200

title
string
Example:

"OK"

description
string
Example:

"Successful request"

payload
object