Perp Long Short
perp_long_shortLong/short positioning that perp venues publish for one symbol: binance, bitget, 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 and bitget = 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, start or end: 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-8760, the hours before now) or start / end (a window; not with hours): a series per venue of [ts, long_short_ratio] pairs, the last print in each interval bucket (1h by default, 4h or 1d; 4h and 1d start at 00:00 UTC; ts the bucket's start), or with interval 'raw' every stored print at its own ts (the venue's own time of the print, on its 5-minute boundary; at most 7 days a call, page with start / end). History is kept a year (binance, bybit, okx and gate from 2026-04-10 for about 40 major symbols, the others from 2026-11-02 on binance, bybit and gate and 2026-11-27 on okx; bitget from 2026-04-09 22:00 to 2026-04-10 16:20, then from 2026-11-28 16:00 (4-hourly to 2026-12-01 04:00, hourly to 23:00, every 5 minutes from 23:30); or from the perp's listing, if later); at most 10,000 buckets a call, and a longer window is refused, never cut short. Covers every perp whose open interest Vike collects on the venue (on gate, every perp it tracks there), stock perps included, read every 5 minutes; bitget publishes long/short for 18 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 |
|---|---|---|---|
| end | No | A series up to this time, exclusive: ISO 8601 or unix seconds. Default: now. | |
| hours | No | A series over this many hours before now, 1 to 8760 (a year; 1 to 168 with interval raw). Not with start/end. Omit hours, start and end for the latest print per venue. | |
| start | No | A series from this time, inclusive: ISO 8601 ('2026-11-01', '2026-11-01T12:00:00Z') or unix seconds, floored to the interval. Default: 7 days before end. | |
| 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. | |
| interval | No | The bucket of a series: 1h (default), 4h or 1d; 4h and 1d start at 00:00 UTC. raw: every stored print at its own time, at most 7 days a call. Only with hours, start or end. |