vike-perp-open-interest
Latest: v1.0.0
First version.
vike-perp-open-interest
Open interest per venue for one coin, and the cross-venue ranking of coins by open interest. 1 request per call. Pass the base asset (BTC, not BTCUSDT); venues are lower case. Whether rising open interest means a crowded side is vike-perp-crowding; the long/short lean per venue is vike-perp-overview (md long-short).
Call it
Use the first of these that is available:
- MCP:
perp_open_interestwithsymbol(required) and the optionalexchange,hours,start,end,interval;perp_funding_oi_weightedwith the optionalsymbol,limit. - CLI:
bash vike-data md oi BTC --json # newest print per venue vike-data md oi ETH --hours 168 --json # hourly, the last 7 days, every venue vike-data md oi BTC --exchange binance --start 2026-04-10 --interval 1d --json # Binance BTC, daily, all history vike-data md funding-oi --limit 20 --json # the 20 coins with the most open interest, with OI-weighted funding vike-data md funding-oi SOL --json # one coin's total and weighted funding - curl: the credential is
VIKE_API_KEY, elseapi_keyoranon_tokenfrom~/.vike/config.json(Windows%USERPROFILE%\.vike\config.json); with none, get a free anonymous token asvike-coresays.bash curl -s "https://data.vike.io/v1/marketdata/perp/oi?symbol=BTC&hours=48" -H "X-API-KEY: $TOKEN" curl -s "https://data.vike.io/v1/marketdata/perp/funding/oi-weighted?limit=20" -H "X-API-KEY: $TOKEN"
md oi flags: --exchange (one venue); for a series either --hours (1-8760 before now) OR --start/--end (ISO-8601 or unix seconds; start defaults to 7 days before end, end to now), never both; --interval 1h (default), 4h or 1d (4h and 1d start at 00:00 UTC), only with a series. md funding-oi: --limit 1-500 coins (default 50).
Reading the answer
md oi, newest print ({symbol, venues, stale_venues, unit}): each venue row has exchange, oi_usd, ts and age_s. Venues: aster, binance, bitget, bybit, deribit, hyperliquid, kraken, kucoin, okx. venues printed within the last hour; stale_venues went silent and must not be added into a total.
md oi, series ({symbol, interval, start, end, series, unit}): series maps each venue to [ts, oi_usd] pairs, oldest first, each the last print in its bucket.
md funding-oi ({symbol, rows}, largest open interest first): symbol, oi_usd (the open interest of the venues weighed, summed), venues, and the funding averaged by open interest as rate_8h and apr, both fractions (0.036 = 3.6 % a year; positive: longs pay shorts). On 2026-12-02 BTC's oi_usd there (18.71B) matched the sum of md oi BTC's nine venues (18.73B). The list includes stock and commodity perps (XAU, SOXL).
How to read it:
oi_usdis USD notional: open contracts x mark price when polled. It is not a contract count, so venues add up, but it rises and falls with the price even when no position opens or closes. Over the same hours, contracts changed by aboutoi_change% - price_change%;vike-perp-crowdingdoes that read with prices.- A venue's share is its
oi_usdover the sum of the fresh venues. Name the venues you summed. - "At a high": pull the daily series from 2026-04-10 and compare the newest value with its own range, per venue or summed.
- Weighted funding counts only venues with a funding print in the last hour and open interest in dollars; bingx, gate, lighter, mexc and weex carry no weight. Per-venue funding is
vike-perp-funding.
Limits
- History from 2026-04-10 (later for venues added since); at most 10,000 buckets a venue a call: a longer window is a 400, never cut short. A year is
--interval 1dor4h, not1h. - Venues are polled every 5-8 minutes; the newest print can be a few minutes old (
age_s). - A coin no venue lists returns empty lists and a
note, never zeros. - Hyperliquid here is the venue's total; who holds it, wallet by wallet, is
vike-hl-cohort-positioningandvike-data hl market.
Errors
hours must be ...or a 400 for--hourswith--start/--end, or--intervalwithout a window: drop one of them. The CLI exits 1 with the server's message.- A window over 10,000 buckets: a wider
--intervalor a shorter window. unknown query parameter(curl): the route takes onlysymbol,exchange,hours,start,end,interval(symbol,limitonoi-weighted).- Exit code 3 or HTTP 429: the day's requests are used up; show the server's message and stop.
Anti-patterns
- Don't read rising
oi_usdas new longs: it is both sides, and partly the price. - Don't add a
stale_venuesrow into a total, or compare totals with different venue sets. - Don't call weighted funding "the funding rate": it is an average; the venues differ, and a trade pays its own venue's.
Pairs well with
vike-perp-crowdingfor open interest net of price next to funding and long/shortvike-perp-overviewfor each venue's long/short lean (md long-short)vike-perp-fundingfor each venue's funding and its historyvike-perp-liquidationsfor the open interest that was forced out
