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 freeWhale vs retail long/short positioning delta time series
Parameters
| name | in | type | description | |
|---|---|---|---|---|
symbol | query | string | required | Base coin ticker symbol, e.g. BTC or ETH default: BTCexample: BTC |
exName | query | string | required | Exchange name, e.g. Binance or OKX default: Binanceexample: Binance |
limit | query | integer | required | Number of data points default: 50example: 50 |
interval | query | string | optional | Interval: m5, m15, m30, h1, h4, h12, h24 default: h1example: 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"