GET /fapi/api/tradingData/whaleVsRetail

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/coinglass/fapi/api/tradingData/whaleVsRetailCache cached 1s, never served stale past that windowCost per_row · weight 2 · heavy rate classSource billing free

Whale vs retail long/short positioning delta time series

Parameters

nameintypedescription
symbolquerystringrequiredBase coin ticker symbol, e.g. BTC or ETH
default: BTC
example: BTC
exNamequerystringrequiredExchange name, e.g. Binance or OKX
default: Binance
example: Binance
limitqueryintegerrequiredNumber of data points
default: 50
example: 50
intervalquerystringoptionalInterval: m5, m15, m30, h1, h4, h12, h24
default: h1
example: h1

Response

type: array
pagination: none
sample: [
  {
    "OpenPrice": "62897.79",
    "time": 1795449600,
    "closePrice": "62250.41",
    "value": 0.291
  }
]

Safe request

Reads the credential from API_HUB_KEY; it never appears in the URL.

curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/coinglass/fapi/api/tradingData/whaleVsRetail?symbol=BTC&exName=Binance&limit=50&interval=h1"