GET
/
analytics
/
trades-flow
/
put-call-ratio
Put Call Ratio
curl --request GET \
  --url https://api.amberdata.com/markets/derivatives/analytics/trades-flow/put-call-ratio \
  --header 'x-api-key: <api-key>'
{
  "status": 200,
  "title": "OK",
  "description": "Successful request",
  "payload": {
    "data": [
      {
        "currency": "BTC",
        "exchange": "deribit",
        "putCallRatioOpenInterest": 0.57,
        "putCallRatioVolume24hr": 0.57,
        "timestamp": 1732233600000
      },
      {
        "currency": "BTC",
        "exchange": "deribit",
        "putCallRatioOpenInterest": 0.55,
        "putCallRatioVolume24hr": 0.55,
        "timestamp": 1732147200000
      },
      {
        "currency": "BTC",
        "exchange": "deribit",
        "putCallRatioOpenInterest": 0.55,
        "putCallRatioVolume24hr": 0.55,
        "timestamp": 1732060800000
      },
      {
        "currency": "BTC",
        "exchange": "deribit",
        "putCallRatioOpenInterest": 0.54,
        "putCallRatioVolume24hr": 0.54,
        "timestamp": 1731974400000
      },
      {
        "currency": "BTC",
        "exchange": "deribit",
        "putCallRatioOpenInterest": 0.53,
        "putCallRatioVolume24hr": 0.53,
        "timestamp": 1731888000000
      },
      {
        "currency": "BTC",
        "exchange": "deribit",
        "putCallRatioOpenInterest": 0.53,
        "putCallRatioVolume24hr": 0.53,
        "timestamp": 1731801600000
      },
      {
        "currency": "BTC",
        "exchange": "deribit",
        "putCallRatioOpenInterest": 0.53,
        "putCallRatioVolume24hr": 0.53,
        "timestamp": 1731715200000
      },
      {
        "currency": "BTC",
        "exchange": "deribit",
        "putCallRatioOpenInterest": 0.55,
        "putCallRatioVolume24hr": 0.55,
        "timestamp": 1731628800000
      },
      {
        "currency": "BTC",
        "exchange": "deribit",
        "putCallRatioOpenInterest": 0.55,
        "putCallRatioVolume24hr": 0.55,
        "timestamp": 1731542400000
      },
      {
        "currency": "BTC",
        "exchange": "deribit",
        "putCallRatioOpenInterest": 0.54,
        "putCallRatioVolume24hr": 0.54,
        "timestamp": 1731456000000
      },
      {
        "currency": "BTC",
        "exchange": "deribit",
        "putCallRatioOpenInterest": 0.52,
        "putCallRatioVolume24hr": 0.52,
        "timestamp": 1731369600000
      },
      {
        "currency": "BTC",
        "exchange": "deribit",
        "putCallRatioOpenInterest": 0.49,
        "putCallRatioVolume24hr": 0.49,
        "timestamp": 1731283200000
      },
      {
        "currency": "BTC",
        "exchange": "deribit",
        "putCallRatioOpenInterest": 0.49,
        "putCallRatioVolume24hr": 0.49,
        "timestamp": 1731196800000
      },
      {
        "currency": "BTC",
        "exchange": "deribit",
        "putCallRatioOpenInterest": 0.49,
        "putCallRatioVolume24hr": 0.49,
        "timestamp": 1731110400000
      },
      {
        "currency": "BTC",
        "exchange": "deribit",
        "putCallRatioOpenInterest": 0.51,
        "putCallRatioVolume24hr": 0.51,
        "timestamp": 1731024000000
      },
      {
        "currency": "BTC",
        "exchange": "deribit",
        "putCallRatioOpenInterest": 0.5,
        "putCallRatioVolume24hr": 0.5,
        "timestamp": 1730937600000
      },
      {
        "currency": "BTC",
        "exchange": "deribit",
        "putCallRatioOpenInterest": 0.5,
        "putCallRatioVolume24hr": 0.5,
        "timestamp": 1730851200000
      },
      {
        "currency": "BTC",
        "exchange": "deribit",
        "putCallRatioOpenInterest": 0.49,
        "putCallRatioVolume24hr": 0.49,
        "timestamp": 1730764800000
      },
      {
        "currency": "BTC",
        "exchange": "deribit",
        "putCallRatioOpenInterest": 0.48,
        "putCallRatioVolume24hr": 0.48,
        "timestamp": 1730678400000
      },
      {
        "currency": "BTC",
        "exchange": "deribit",
        "putCallRatioOpenInterest": 0.48,
        "putCallRatioVolume24hr": 0.48,
        "timestamp": 1730592000000
      }
    ],
    "metadata": {
      "api-version": "2023-09-30"
    }
  }
}

Authorizations

x-api-key
string
header
required

Query Parameters

exchange
string
default:deribit

[Optional] The exchange for which to retrieve the listed option level 1 quotes. [Examples] deribit | okex | bybit

currency
string
default:BTC
required

[Required] The underlying currency for which there are listed option instruments. [Examples] BTC | SOL_USDC Note: inverse options have underlying currencies formatted as (BTC, ETH) while linear option currency formats include the stable coin in the same (SOL_USDC)

startDate
string<date-time>
default:2024-05-21

[Optional] Payload only includes data after this date (inclusive). [Formats] seconds | milliseconds | iso8601 [Examples] 1578531600 | 1578531600000 | 2020-09-01T01:00:00

endDate
string
default:2024-06-01

[Required] Payload only includes data before this date (exclusive). [Formats] seconds | milliseconds | iso8601 [Examples] 1578531600 | 1578531600000 | 2020-09-01T01:00:00

timeInterval
string
default:day

[Optional] This controls the granularity of the data. The user can input hour or day.

timeFormat
string

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

Response

200
application/json

Successful request

The response is of type object.