
Perpetual Funding & Basis Trading
Analyzes crypto perpetual funding rates and spot-futures basis to frame carry trades and sentiment signals.
- Repository
- HKUDS/Vibe-Trading
- Stars
- 37,433
- Licence
- MIT
- Files
- 1 file
What it does
Once installed, the agent gains a structured framework for reading crypto derivatives market data: perpetual futures funding rates (periodic payments between long and short traders that keep the perpetual price near spot), annualized basis between spot and dated futures, and how these can hint at crowded positioning. It can also explain how a delta-neutral cash-carry trade (buy spot, short the perpetual to collect funding) is constructed, its risks, and how funding spreads across exchanges might be compared. The file contains Python formulas and example calculations, but no live data feed; it is guidance and calculation logic, not a trading system.
Great for
- Crypto traders or analysts who already understand futures and want a consistent way to interpret funding and basis data
- Students or researchers learning how perpetual funding and cash-carry arbitrage work
- Developers building a dashboard or backtest that needs funding-rate regime and annualization formulas
Skip it if
- Beginners using it to decide trades with real money: the skill presents signal thresholds that are heuristic, and leverage, liquidation and exchange risks can cause large losses
- Users expecting real-time prices or exchange data: the skill itself fetches nothing, so the agent must obtain data another way
- Traditional-market or non-crypto assets: the framework is specific to perpetual crypto contracts
Try asking
- “Explain what a funding rate of 0.01% per 8 hours means as an annualized figure and whether it signals crowded longs”
- “Calculate the annualized basis between BTC spot at $65,000 and a quarterly future at $66,500 with 45 days to expiry”
- “Walk me through the risks of a delta-neutral cash-carry trade on OKX before I open one”
- “Compare funding rates for BTC-USDT across three exchanges and estimate the net carry from a spread”
Install in 3 steps
- 1
Download the skill
The ZIP contains the 1 original files, the MIT licence and an attribution note.
perp-funding-basis.zip - 2
Add it to your agent
Claude Code (all projects)
mkdir -p ~/.claude/skills && unzip perp-funding-basis.zip -d ~/.claude/skills/Claude Code / Agent SDK (this project only)
mkdir -p .claude/skills && unzip perp-funding-basis.zip -d .claude/skills/Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.
- 3
Ask for the task
No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.
Get better results
- Provide your own current funding and price data in the conversation; the skill does not retrieve it, so ask the agent to work from the numbers you supply.
- Treat the signal thresholds as starting points and check them against your own historical data before relying on them.
- Ask for the risk factors alongside any carry-trade idea, especially liquidation risk and funding flipping negative.
What's inside
- SKILL.md
Redistributed unmodified from HKUDS/Vibe-Trading under the MIT licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.