vike-perp-funding
Latest: v1.0.0
First version.
vike-perp-funding
Funding rates across the CEX venues and Hyperliquid, from one tool (perp funding) in two modes. The rows name the exchange; there is no mark price and no bid/ask in either mode.
Commands
A. Arb opportunities (no symbol)
vike-data perp funding --json
Returns at most 5 pre-ranked rows where the spread between the highest-funding and the lowest-funding venue is ≥ 0.3% per day (spreads of more than ~10% per day are dropped as artifacts). Each row:
symbollong_exchange,long_daily_pct(the venue to be long: lowest funding)short_exchange,short_daily_pct(the venue to be short: highest funding)spread_daily_pct
These are pre-ranked and already normalised to daily % — cite the rows directly. The list is a short top-5, not a full-market scan.
B. One symbol, every venue
vike-data perp funding --symbol BTC --json
One row per venue: exchange, symbol, funding_rate, interval_h, next_ts, vol_24h_usd.
funding_rate is the raw per-interval rate as a fraction (0.0001 = 0.01% per interval) and venues use different intervals (interval_h: Hyperliquid 1h, most CEXs 8h). Normalise yourself before comparing venues:
daily_pct = funding_rate × (24 / interval_h) × 100
annualised_pct = daily_pct × 365
vol_24h_usd is the venue's 24h perp notional: use it as the liquidity check.
C. History, and the arb after costs
Both modes above are a snapshot. The REST API /v1/marketdata (vike-data md, one GET each) adds the history and the costs. md funding-now gives the same answer as perp funding.
vike-data md funding BTC --exchange bybit --start 2026-11-23 --json # settled funding since a date, newest first, one venue or all
vike-data md funding-now BTC --json # every venue now (no symbol: the top-5 arb list)
vike-data md carry --costs fees_slippage --horizon 48 --json # cross-venue pairs: gross_apr vs net_apr, breakeven_h
vike-data md funding-oi --limit 20 --json # each coin's funding averaged across venues by open interest
md funding rows carry rate (one settlement), interval_h, rate_8h (the rate scaled to 8 hours, so 1h and 8h venues compare), apr (a fraction: 0.11 = 11 % a year) and venue_symbol, the venue's own name for the perp. A stock perp gathers every venue's: md funding NVDA also returns Hyperliquid's HIP-3 markets xyz:NVDA and io:NVDA (both exchange hyperliquid: tell them apart by venue_symbol) and BingX NCSKNVDA2USD; md funding xyz:NVDA (dex lower case) is that one market. md funding-now BTC rows carry rate_8h, apr and venue_symbol too. Arbitrage rows (no symbol) carry long_/short_ versions of the last two fields below. Two more fields on each venue's rate:
capped: true: the rate sits at the venue's published cap or floor, so the real pressure may be larger.nullmeans the venue publishes no cap.interval_src:venue(published for the symbol),fixed(the venue settles hourly for every market) ordefault(nothing published, 8 h assumed, sorate_8handaprare an estimate).
The settled history behind the snapshot is in the same answer. All of it covers funding settled up to the start of the current UTC hour, and is null when nothing settled in the window.
- Per venue (
md funding-now BTC):avg_apr_7dandavg_apr_30d: the average settled rate, a year, as a fraction.cum_1d,cum_7dandcum_30d: the sum of settled rates, what a long paid per unit of notional; negative means it was paid.oi_usd: open interest in USD.
- On arbitrage pairs (no symbol):
opportunity_age_h: how many hours in a row the gap held at 0.3 %/day or more; 720 means all 30 days.stability_7d: the share of the last 7 days' hours in which it held, 0 to 1.spread_avg_7d_daily_pctandspread_avg_30d_daily_pct: the average gap.- each leg's
next_daily_pct: the rate quoted for its next settlement.
- Prefer a pair with a long
opportunity_age_hand a highstability_7d. A pair at age 0 or with a low stability is one hour's print.
md funding-oi gives one funding number per coin: its venues' rates weighted by open interest. Positive means longs pay. Venues without dollar open interest (deribit, bingx, gate, lighter, mexc, weex) carry no weight.
market_status (delisting, reduce_only or null) and delist_ts on each venue or leg come from the venue's own API (binance, bybit, okx, bitget, gate, kucoin, aster). A funding gap on a delisting or reduce-only venue is not a trade.
The table view prints:
- a capped rate as
0.0075 capped; - the interval as
4h, or8h assumed; - a venue with a status as
binance (delisting 2026-12-08)orbybit (reduce_only).
Whether a pair pays after fees: vike-perp-carry.
Venue comparison (one symbol)
Run B, normalise, then report:
<SYM>perp — funding by venue
Venue Funding per interval Interval Daily % 24h volume ... ... ... ... ... Best venue to long:
<X>(lowest daily funding, i.e. longs pay least or receive) Best venue to short:<Y>(highest daily funding, i.e. shorts receive most) Funding edge: long-short = X%/day, gross
- Positive funding → longs pay shorts: a good place to be short. Negative → shorts pay longs: a good place to be long.
- A divergence above 0.5%/day between two venues with similar liquidity is an edge worth quantifying.
Reading the arb
spread_daily_pct = 0.42% → ~$420/day per $100k notional per leg, gross
(before fees, slippage, margin and transfer costs)
A funding arb at 0.4–1% daily is real. Anything much higher on a liquid pair is usually a halted market or a venue artifact: check vol_24h_usd in mode B for both venues before calling it a trade.
Anti-patterns
- Don't quote a daily funding rate as "annualized" without converting (× 365). Be explicit about the unit.
- Funding flips every 1–8 hours depending on the venue. The number is the current rate, not a forecast — don't extrapolate without saying so.
- Spread < 0.3% daily is filtered out at the source (not enough to cover fees + execution). Don't try to lower the filter.
- Don't blindly pick the lowest-funding venue without checking
vol_24h_usd— Hyperliquid funding looks great on small alts but the book can be thin. - Don't read
funding_rateof an 8h venue against a 1h venue without normalising. - Don't promise a price comparison from this tool: for price gaps across venues use
vike-perp-overview(perp spreads). - The arb list often leads with thin tokens: run mode B and read
vol_24h_usdon both legs before calling a row a trade. - Funding is the cost of carrying a position, not how crowded it is: for open interest and long/short per venue see
vike-perp-overview, andvike-perp-crowdingfor the combined read.
Pairs well with
vike-perp-overviewfor cross-venue price gaps, open interest, long/short and the market snapshotvike-perp-carryfor a cross-venue pair's net APR after fees and slippage, and the funding history of each legvike-perp-crowdingto put a funding number next to open interest and positioning;vike-hl-asset-briefingfor one Hyperliquid symbolvike-hl-top-tradersto see how Hyperliquid's best traders are doing
