
curl -X POST https://api.orthogonal.com/v1/run \
-H 'Authorization: Bearer orth_live_••••' \
-H 'Content-Type: application/json' \
-d '{
"api": "surf",
"path": "/gateway/v1/exchange/long-short-ratio",
"method": "GET",
"query": {
"pair": ""
}
}'
{
"success": true,
"data": {
"data": [ 50 items ],
"meta": { … },
"$schema": "https://api.asksurf.ai/schemas/SimpleListResponseExchangeLongShortRatioItem.json"
}
}
A real response, recorded when Orthogonal checked this endpoint.
$0.00654per call
Every call costs the same.
You aren't charged for failed calls. A wallet payment for a failed call is refunded.
About this endpoint
Exchange Long/Short Ratio History: Returns historical long/short ratio for a perpetual contract.
Included fields: ratio value, long account percentage, short account percentage.
Granularity: interval supports 1h, 4h, 1d.
Pagination: use from for start time and limit for result count. For longer history, pass the last returned timestamp as the next from value.
Note: not all exchanges support historical queries via from; some only return recent data regardless.
Just pass the base pair (e.g. pair=BTC/USDT). For aggregated cross-exchange long/short ratio, see /market/futures.
Query parameters
pairrequiredstringTrading pair (e.g. BTC/USDT)intervalstringBucket size for each point in the series: 1h, 4h, or 1d. This endpoint uses interval only; it does NOT accept time_range. Use from + limit to control the window.fromstringStart of time range. Accepts Unix seconds or date string (YYYY-MM-DD, ISO8601). Binance only retains the last 30 days of data; other exchanges may have different limits.limitintegerMax number of records. For longer history, paginate using the last returned timestamp as the next from value.exchangestringExchange identifierResponse types
$schemaA URL to the JSON Schema for this object.stringMore from Surf API
- KOL rankingGET/gateway/v1/smart-money/kol/ranking$0.01308 per callFixed
- Liquidation chartGET/gateway/v1/market/liquidation/chart$0.01308 per callFixed
- Blockchain SQL queryPOST/gateway/v1/onchain/sql$0.02616 per callFixed
- KOL call historyGET/gateway/v1/smart-money/kol/history$0.01308 per callFixed
- Order book depthGET/gateway/v1/exchange/depth$0.00654 per callFixed
- Latest company financialsGET/gateway/v1/equity/latest-financialsUp to $0.03924 per callResponse-based
- Web page fetchGET/gateway/v1/web/fetch$0.00654 per callFixed
- Matched market pairsGET/gateway/v1/prediction-market/matching/pairs$0.02616 per callFixed
- Polymarket wallet positionsGET/gateway/v1/prediction-market/polymarket/positions$0.02616 per callFixed
- Hyperliquid trader leaderboardGET/gateway/v1/hyperliquid/leaderboard$0.02616 per callFixed
- Perpetual contract snapshotGET/gateway/v1/exchange/perp$0.00654 per callFixed
- KOL activityGET/gateway/v1/smart-money/kol/activity$0.01308 per callFixed