360 Secure SkillHub
360 安全技能中心

vike-perp-funding

该 Skill 通过 vike-data 命令行工具查询 CEX 与 Hyperliquid 的永续合约资金费率,支持无符号查询跨场所套利机会,以及指定符号在各场所的费率比较;还提供历史结算、成本后净收益和持仓量加权费率等分析,输出 JSON 或表格。

分类:数据
vikeio
vikeio
热度 38.28
最近更新 2026-12-02 09:58:14

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add vikeio/vike-perp-funding
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
vike-perp-funding
description
Perpetual-futures funding rates across CEX venues and Hyperliquid — the top cross-venue funding-arb opportunities, and the per-venue funding of one symbol. Use when the user asks "any funding arb today" / "where to long-short X for funding" / "highest funding rates" / "where to trade X" / "compare BTC perp across exchanges" / "best venue for ETH long".
allowed-tools
Bash(vike-data:*)

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:

  • symbol
  • long_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. null means the venue publishes no cap.
  • interval_src: venue (published for the symbol), fixed (the venue settles hourly for every market) or default (nothing published, 8 h assumed, so rate_8h and apr are 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_7d and avg_apr_30d: the average settled rate, a year, as a fraction.
    • cum_1d, cum_7d and cum_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_pct and spread_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_h and a high stability_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, or 8h assumed;
  • a venue with a status as binance (delisting 2026-12-08) or bybit (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_rate of 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_usd on 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, and vike-perp-crowding for the combined read.

Pairs well with

  • vike-perp-overview for cross-venue price gaps, open interest, long/short and the market snapshot
  • vike-perp-carry for a cross-venue pair's net APR after fees and slippage, and the funding history of each leg
  • vike-perp-crowding to put a funding number next to open interest and positioning; vike-hl-asset-briefing for one Hyperliquid symbol
  • vike-hl-top-traders to see how Hyperliquid's best traders are doing