perp-funding-basis
This skill decodes perpetual futures funding mechanics to spot carry trade setups and leverage extremes. It covers funding rate regimes, annualized basis signals, delta-neutral trade construction, and cross-exchange arbitrage spreads—all grounded in real microstructure data from OKX and other venues.
Perp-funding-basis identifies carry trade opportunities by analyzing funding rates and spot-futures basis across crypto exchanges.
AI-generated summary based on this skill's SKILL.md
Install
HKUDS/Vibe-Trading/perp-funding-basis · repository language: Python
git clone https://github.com/HKUDS/Vibe-Trading
cp -r Vibe-Trading/agent/src/skills/perp-funding-basis ~/.claude/skills/perp-funding-basisnpx skillfed install HKUDS/Vibe-Trading/perp-funding-basisFrequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
What is perpetual futures funding rate analysis and how does perp-funding-basis help?
perp-funding-basis decodes perpetual futures funding mechanics to identify carry trade setups and leverage extremes. The skill covers funding rate regimes, annualized basis signals, delta-neutral trade construction, and cross-exchange arbitrage spreads using real microstructure data from OKX and other venues.
How do I read perpetual funding rates with perp-funding-basis?
perp-funding-basis teaches you to interpret funding rate signals as sentiment indicators and market structure markers. It explains how to calculate annualized basis, detect funding rate regimes (normal, elevated, extreme), and recognize when long or short squeezes are building based on funding divergence patterns.
What funding rate arbitrage opportunities can perp-funding-basis identify?
perp-funding-basis spots cross-exchange funding rate spreads—the gaps between OKX, Binance, Bybit, and other venues. It helps you execute delta-neutral carry trades by simultaneously longing spot or futures on one exchange while shorting perpetuals on another, capturing the funding rate differential for yield generation.
How does perp-funding-basis detect market extremes and squeeze risks?
perp-funding-basis analyzes funding rate regimes to flag when markets are stretched. Extreme positive funding signals potential long squeezes; extreme negative funding warns of short squeezes. The skill correlates funding divergence with open interest matrices to spot when leverage is concentrated and vulnerable to liquidation cascades.
Can perp-funding-basis be used as a directional trading signal?
Yes. perp-funding-basis treats funding divergence as a directional signal—when funding rates spike or invert across venues, it often precedes directional moves. The skill helps you interpret whether elevated funding reflects genuine directional conviction or unsustainable leverage, informing your trade timing and risk management.
What perpetual futures microstructure does perp-funding-basis explain?
perp-funding-basis covers perpetual swap basis mechanics, spot-futures pricing relationships, and how funding schedules (like OKX's hourly settlements) shape arbitrage windows. It grounds all analysis in real market data so you understand why basis contango or backwardation emerges and how to exploit it.
SKILL.md
rendered from the published skill — quoted content, verbatim
Perpetual Funding Rate & Basis Trading
Overview
Analyze perpetual futures funding rates and spot-futures basis to identify carry trade opportunities, market positioning extremes, and directional sentiment signals. Funding rates are the single most important microstructure indicator in crypto derivatives — they reveal real-time leverage positioning and crowd sentiment.
Core Concepts
1. Funding Rate Mechanics
Perpetual futures have no expiry date. Instead, a funding rate is exchanged between longs and shorts every 8 hours (on most exchanges) to keep the perpetual price anchored to the spot price.
If perp price > spot price → funding rate positive → longs pay shorts
If perp price < spot price → funding rate negative → shorts pay longs
OKX funding rate schedule: payments at 00:00, 08:00, 16:00 UTC
Annualized funding rate: ```python
Funding rate is a per-8h DECIMAL, exactly as OKX/Binance return
(truncated - see the full file via the links below)
Read as markdown · JSON record · Browse the source repository
File tree — 1 file
agent/src/skills/perp-funding-basis/SKILL.md