GET
/
analytics
/
trades-flow
/
put-call-distribution
Put Call Trades Distribution
curl --request GET \
  --url https://api.amberdata.com/markets/derivatives/analytics/trades-flow/put-call-distribution \
  --header 'x-api-key: <api-key>'
{
  "status": 200,
  "title": "OK",
  "description": "Successful request",
  "payload": {
    "data": [
      {
        "callsContractsBought": 57457.100000000115,
        "putContractsBought": 40470.70000000006,
        "callsContractsSold": 57535.10000000011,
        "putContractsSold": 35622.60000000012,
        "callsPremiumBought": 106471710.98494382,
        "putPremiumBought": 45180478.74917743,
        "callsPremiumSold": 104654076.88302676,
        "putPremiumSold": 44623690.99527128,
        "callsContractsBoughtExchangeDirection": 55601.00000000013,
        "putContractsBoughtExchangeDirection": 39594.80000000007,
        "callsContractsSoldExchangeDirection": 59251.20000000009,
        "putContractsSoldExchangeDirection": 36498.5000000001,
        "callsPremiumBoughtExchangeDirection": 93552496.91739166,
        "putPremiumBoughtExchangeDirection": 48017408.59515418,
        "callsPremiumSoldExchangeDirection": 116283502.4950176,
        "putPremiumSoldExchangeDirection": 41786761.14929454
      }
    ],
    "metadata": {
      "api-version": "2023-09-30"
    }
  }
}

Authorizations

x-api-key
string
header
required

Query Parameters

exchange
string
default:deribit
required

[Required] 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

strike
integer

[Optional] The option instrument subset with a given strike price. [Examples] 100000 | 3500

expirationTimestamp
string

[Optional] The option instrument subset with a given expiration date.

blockTradeId
boolean

[Optional] This flag enables users to filter for only blockTrade or non-blockTrades. If the user wants everything returned they can choose to leave the parameter blank.

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.