tracking-crypto-derivatives
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".
What this skill does
# 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
1. **Check funding rates** across exchanges to identify sentiment and arbitrage opportunities:
```bash
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
2. **Analyze open interest** to gauge market positioning and trend strength:
```bash
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
3. **Monitor liquidations** to find support/resistance clusters:
```bash
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
```
4. **Analyze options market** for IV, put/call ratio, and max pain:
```bash
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
```
5. **Calculate basis** for spot-futures arbitrage opportunities:
```bash
python derivatives_tracker.py basis BTC
python derivatives_tracker.py basis BTC --quarterly
python derivatives_tracker.py basis --all
```
6. **Run full dashboard** for comprehensive derivatives overview:
```bash
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:
```bash
python derivatives_tracker.py dashboard BTC ETH SOL
```
**Funding rate arbitrage** - Alert when funding exceeds threshold for cash-and-carry:
```bash
python derivatives_tracker.py funding BTC --alert-threshold 0.08
```
**Pre-expiry options analysis** - Check max pain and IV before Friday expiry:
```bash
python derivatives_tracker.py options BTC --expiry friday
```
**Basis trading scan** - Find all pairs with annualized yield above 5%:
```bash
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
Related in Data & Analytics
clawarr-suite
IncludedComprehensive management for self-hosted media stacks (Sonarr, Radarr, Lidarr, Readarr, Prowlarr, Bazarr, Overseerr, Plex, Tautulli, SABnzbd, Recyclarr, Unpackerr, Notifiarr, Maintainerr, Kometa, FlareSolverr). Deep library exploration, analytics, dashboard generation, content management, request handling, subtitle management, indexer control, download monitoring, quality profile sync, library cleanup automation, notification routing, collection/overlay management, and media tracker integration (Trakt, Letterboxd, Simkl).
querying-soql
IncludedSOQL query generation, optimization, and analysis with 100-point scoring. Use this skill when the user needs SOQL/SOSL authoring or optimization: natural-language-to-query generation, relationship queries, aggregates, query-plan analysis, and performance or safety improvements for Salesforce queries. TRIGGER when: user writes, optimizes, or debugs SOQL/SOSL queries, touches .soql files, or asks about relationship queries, aggregates, or query performance. DO NOT TRIGGER when: bulk data operations (use handling-sf-data), Apex DML logic (use generating-apex), or report/dashboard queries.
app-store-optimization
IncludedApp Store Optimization (ASO) toolkit for researching keywords, analyzing competitor rankings, generating metadata suggestions, and improving app visibility on Apple App Store and Google Play Store. Use when the user asks about ASO, app store rankings, app metadata, app titles and descriptions, app store listings, app visibility, or mobile app marketing on iOS or Android. Supports keyword research and scoring, competitor keyword analysis, metadata optimization, A/B test planning, launch checklists, and tracking ranking changes.
habit-flow
IncludedAI-powered atomic habit tracker with natural language logging, streak tracking, smart reminders, and coaching. Use for creating habits, logging completions naturally ("I meditated today"), viewing progress, and getting personalized coaching.
app-store-optimization
IncludedApp Store Optimization (ASO) toolkit for researching keywords, analyzing competitor rankings, generating metadata suggestions, and improving app visibility on Apple App Store and Google Play Store. Use when the user asks about ASO, app store rankings, app metadata, app titles and descriptions, app store listings, app visibility, or mobile app marketing on iOS or Android. Supports keyword research and scoring, competitor keyword analysis, metadata optimization, A/B test planning, launch checklists, and tracking ranking changes.
visualizing-data
IncludedBuilds dashboards, reports, and data-driven interfaces requiring charts, graphs, or visual analytics. Provides systematic framework for selecting appropriate visualizations based on data characteristics and analytical purpose. Includes 24+ visualization types organized by purpose (trends, comparisons, distributions, relationships, flows, hierarchies, geospatial), accessibility patterns (WCAG 2.1 AA compliance), colorblind-safe palettes, and performance optimization strategies. Use when creating visualizations, choosing chart types, displaying data graphically, or designing data interfaces.