Perp Long Short
perp_long_shortLong/short positioning that perp venues publish for one symbol: binance, bybit, gate, okx. The venues do NOT measure the same thing, so every row carries basis: binance = top traders by POSITIONS; okx and gate = top traders by ACCOUNTS; bybit = ALL accounts. Compare a venue with itself over time, never as a like-for-like average across venues. long_share / short_share are fractions of 1 (0.63 = 63 %); long_short_ratio = long / short (1.72 = 1.72 longs per short; above 1 is long-heavy). Without hours: the newest 5-minute print per venue and its age in seconds (venues printed within the last hour, stale_venues went silent). With hours (1-168): an hourly long_short_ratio series per venue, the last print in each UTC hour. Covers about 40 major symbols only; any other symbol returns empty lists and a note, never zeros. symbol is the canonical base asset ('BTC').
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"symbol": "<symbol>"
},
"name": "perp_long_short"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hours | No | Omit for the latest print per venue. 1 to 168 for an hourly series over that many hours. | |
| symbol | Yes | Required. Base asset, e.g. 'BTC', 'ETH', 'SOL' (not 'BTCUSDT'). | |
| exchange | No | Only this venue (lower case), e.g. 'okx'. Omit for every venue. |