GET /fapi/api/futures/longShortChart
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/coinglass/fapi/api/futures/longShortChartCache cached 1s, never served stale past that windowCost per_row · weight 2 · heavy rate classSource billing freeHistorical long/short ratio, taker buy/sell quantity, and price chart
Parameters
| name | in | type | description | |
|---|---|---|---|---|
symbol | query | string | required | Base coin ticker symbol, e.g. BTC or ETH default: BTCexample: BTC |
timeType | query | integer | optional | Timeframe code default: 2example: 2 |
Response
type: object
pagination: none
sample: {
"buyQty": 0,
"dateList": "list(30)",
"longRateList": "list(30)",
"longShortRateList": "list(30)",
"priceList": "list(30)",
"sellQty": 0
}
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/futures/longShortChart?symbol=BTC&timeType=2"