Tracking Crypto Derivatives
Overview
Aggregate funding rates, open interest, liquidations, and options data across CEX and DEX derivatives exchanges to produce actionable trading insights.
Supported Markets: Perpetual Swaps (Binance, Bybit, OKX, Deribit, BitMEX), Quarterly Futures, Options (Deribit, OKX, Bybit), DEX Perpetuals (dYdX, GMX, Drift Protocol).
Prerequisites
- Python 3.8+ installed
- Network access to exchange APIs
- Optional: API keys for higher rate limits
- Understanding of derivatives concepts (funding, OI, basis)
Instructions
Check funding rates across exchanges to identify sentiment and arbitrage opportunities:
python derivatives_tracker.py funding BTC
python derivatives_tracker.py funding BTC ETH SOL
python derivatives_tracker.py funding BTC --history 7d
- Positive funding (>0.01%): Longs pay shorts, bullish sentiment
- Negative funding (<-0.01%): Shorts pay longs, bearish sentiment
- Extreme funding (>0.1%): Potential contrarian opportunity
Analyze open interest to gauge market positioning and trend strength:
python derivatives_tracker.py oi BTC
python derivatives_tracker.py oi BTC --changes
python derivatives_tracker.py oi BTC --divergence
- Rising OI + Rising Price = strong bullish trend
- Rising OI + Falling Price = strong bearish trend
- Falling OI + Rising Price = short covering rally
- Falling OI + Falling Price = long liquidations
Monitor liquidations to find support/resistance clusters:
python derivatives_tracker.py liquidations BTC
python derivatives_tracker.py liquidations BTC --recent
python derivatives_tracker.py liquidations BTC --min-size 100000 # 100000 = minimum USD liquidation size filter
Analyze options market for IV, put/call ratio, and max pain:
python derivatives_tracker.py options BTC
python derivatives_tracker.py options BTC --pcr
python derivatives_tracker.py options BTC --expiry 2025-01-31 # 2025 = target expiry year
Calculate basis for spot-futures arbitrage opportunities:
python derivatives_tracker.py basis BTC
python derivatives_tracker.py basis BTC --quarterly
python derivatives_tracker.py basis --all
Run full dashboard for comprehensive derivatives overview:
python derivatives_tracker.py dashboard BTC
python derivatives_tracker.py dashboard BTC ETH SOL
python derivatives_tracker.py dashboard BTC --output json
Output
The skill produces structured reports per market type:
- Funding Rate Report: Current, 24h avg, 7d avg rates per exchange with annualized yield and sentiment
- Open Interest Report: OI per exchange with 24h/7d changes, share %, and long/short ratio
- Liquidation Heatmap: Long/short liquidation clusters by price level with USD density
- Options Overview: Put/call ratio, IV rank, max pain, and large flow alerts
- Basis Report: Spot-perp and quarterly basis with annualized carry rates
See ${CLAUDE_SKILL_DIR}/references/implementation.md for detailed output format examples.
Error Handling
| Error |
Cause |
Fix |
ERR_RATE_LIMIT |
Too many API requests |
Reduce frequency or add API key |
ERR_EXCHANGE_DOWN |
Exchange API unavailable |
Try alternative exchange |
ERR_SYMBOL_INVALID |
Wrong symbol format |
Use BTC, ETH (not BTCUSDT) |
Examples
Morning derivatives check - Scan funding, OI, and liquidations for top assets:
python derivatives_tracker.py dashboard BTC ETH SOL
Funding rate arbitrage - Alert when funding exceeds threshold for cash-and-carry:
python derivatives_tracker.py funding BTC --alert-threshold 0.08
Pre-expiry options analysis - Check max pain and IV before Friday expiry:
python derivatives_tracker.py options BTC --expiry friday
Basis trading scan - Find all pairs with annualized yield above 5%:
python derivatives_tracker.py basis --all --min-yield 5 # 5 = minimum annualized yield %
Resources
- Coinglass: Aggregated derivatives data
- Exchange APIs: Binance, Bybit, OKX, Deribit
- The Graph: DEX perpetuals data
${CLAUDE_SKILL_DIR}/references/implementation.md - Detailed output formats, options/basis guides, key concepts
Source: jeremylongshore/claude-code-plugins-plus-skills → skills/.curated/tracking-crypto-derivatives/SKILL.md
Also appears in: jeremylongshore/claude-code-plugins-plus-skills/plugins/crypto/crypto-derivatives-tracker/skills/tracking-crypto-derivatives/SKILL.md
1---2name: tracking-crypto-derivatives3description: "'Track cryptocurrency futures, options, and perpetual swaps with funding rates, open interest, liquidations, and comprehensive derivatives market analysis. Use when monitoring derivatives markets, analyzing funding rates, tracking open interest, finding liquidation levels, or researching options flow. Trigger with phrases like \"funding rate\", \"open interest\", \"perpetual swap\", \"futures basis\", \"liquidation levels\", \"options flow\", \"put call ratio\", \"derivatives analysis\", or \"BTC perps\". '"4allowed-tools: "Read, Write, Edit, Grep, Glob, Bash(crypto:derivatives-*)"5category: business-and-finance6source_repo: jeremylongshore/claude-code-plugins-plus-skills7source_path: "skills/.curated/tracking-crypto-derivatives/SKILL.md"8source_url: https://github.com/jeremylongshore/claude-code-plugins-plus-skills/blob/HEAD/skills/.curated/tracking-crypto-derivatives/SKILL.md9metadata:10 source: https://skillmd.com/skills/thedixitjain/tracking-crypto-derivatives11---1213# Tracking Crypto Derivatives1415## Overview1617Aggregate funding rates, open interest, liquidations, and options data across CEX and DEX derivatives exchanges to produce actionable trading insights.1819**Supported Markets**: Perpetual Swaps (Binance, Bybit, OKX, Deribit, BitMEX), Quarterly Futures, Options (Deribit, OKX, Bybit), DEX Perpetuals (dYdX, GMX, Drift Protocol).2021## Prerequisites2223- Python 3.8+ installed24- Network access to exchange APIs25- Optional: API keys for higher rate limits26- Understanding of derivatives concepts (funding, OI, basis)2728## Instructions29301. **Check funding rates** across exchanges to identify sentiment and arbitrage opportunities:3132 ```bash33 python derivatives_tracker.py funding BTC34 python derivatives_tracker.py funding BTC ETH SOL35 python derivatives_tracker.py funding BTC --history 7d36 ```3738 - Positive funding (>0.01%): Longs pay shorts, bullish sentiment39 - Negative funding (<-0.01%): Shorts pay longs, bearish sentiment40 - Extreme funding (>0.1%): Potential contrarian opportunity41422. **Analyze open interest** to gauge market positioning and trend strength:4344 ```bash45 python derivatives_tracker.py oi BTC46 python derivatives_tracker.py oi BTC --changes47 python derivatives_tracker.py oi BTC --divergence48 ```4950 - Rising OI + Rising Price = strong bullish trend51 - Rising OI + Falling Price = strong bearish trend52 - Falling OI + Rising Price = short covering rally53 - Falling OI + Falling Price = long liquidations54553. **Monitor liquidations** to find support/resistance clusters:5657 ```bash58 python derivatives_tracker.py liquidations BTC59 python derivatives_tracker.py liquidations BTC --recent60 python derivatives_tracker.py liquidations BTC --min-size 100000 # 100000 = minimum USD liquidation size filter61 ```62634. **Analyze options market** for IV, put/call ratio, and max pain:6465 ```bash66 python derivatives_tracker.py options BTC67 python derivatives_tracker.py options BTC --pcr68 python derivatives_tracker.py options BTC --expiry 2025-01-31 # 2025 = target expiry year69 ```70715. **Calculate basis** for spot-futures arbitrage opportunities:7273 ```bash74 python derivatives_tracker.py basis BTC75 python derivatives_tracker.py basis BTC --quarterly76 python derivatives_tracker.py basis --all77 ```78796. **Run full dashboard** for comprehensive derivatives overview:8081 ```bash82 python derivatives_tracker.py dashboard BTC83 python derivatives_tracker.py dashboard BTC ETH SOL84 python derivatives_tracker.py dashboard BTC --output json85 ```8687## Output8889The skill produces structured reports per market type:9091- **Funding Rate Report**: Current, 24h avg, 7d avg rates per exchange with annualized yield and sentiment92- **Open Interest Report**: OI per exchange with 24h/7d changes, share %, and long/short ratio93- **Liquidation Heatmap**: Long/short liquidation clusters by price level with USD density94- **Options Overview**: Put/call ratio, IV rank, max pain, and large flow alerts95- **Basis Report**: Spot-perp and quarterly basis with annualized carry rates9697See `${CLAUDE_SKILL_DIR}/references/implementation.md` for detailed output format examples.9899## Error Handling100101| Error | Cause | Fix |102|-------|-------|-----|103| `ERR_RATE_LIMIT` | Too many API requests | Reduce frequency or add API key |104| `ERR_EXCHANGE_DOWN` | Exchange API unavailable | Try alternative exchange |105| `ERR_SYMBOL_INVALID` | Wrong symbol format | Use BTC, ETH (not BTCUSDT) |106107## Examples108109**Morning derivatives check** - Scan funding, OI, and liquidations for top assets:110111```bash112python derivatives_tracker.py dashboard BTC ETH SOL113```114115**Funding rate arbitrage** - Alert when funding exceeds threshold for cash-and-carry:116117```bash118python derivatives_tracker.py funding BTC --alert-threshold 0.08119```120121**Pre-expiry options analysis** - Check max pain and IV before Friday expiry:122123```bash124python derivatives_tracker.py options BTC --expiry friday125```126127**Basis trading scan** - Find all pairs with annualized yield above 5%:128129```bash130python derivatives_tracker.py basis --all --min-yield 5 # 5 = minimum annualized yield %131```132133## Resources134135- **Coinglass**: Aggregated derivatives data136- **Exchange APIs**: Binance, Bybit, OKX, Deribit137- **The Graph**: DEX perpetuals data138- `${CLAUDE_SKILL_DIR}/references/implementation.md` - Detailed output formats, options/basis guides, key concepts139140---141142**Source:** [`jeremylongshore/claude-code-plugins-plus-skills`](https://github.com/jeremylongshore/claude-code-plugins-plus-skills) → `skills/.curated/tracking-crypto-derivatives/SKILL.md`143144**Also appears in:** `jeremylongshore/claude-code-plugins-plus-skills/plugins/crypto/crypto-derivatives-tracker/skills/tracking-crypto-derivatives/SKILL.md`