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".
- License 许可
- MIT
- 最近更新
- 2026-03-20
- Stars
- ★ 4
- Forks
- 0
01 前言 Front Matter
- name
- tracking-crypto-derivatives
- author
- Jeremy Longshore <jeremy@intentsolutions.io>
- license
- MIT
- version
- 1.0.0
- description
- 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".
- allowed-tools
- Read, Write, Edit, Grep, Glob, Bash(crypto:derivatives-*)
- compatible-with
- claude-code, codex, openclaw
02 资源文件 13
- 参考文档ARD.md12.3 KB
- 参考文档config/settings.yaml3.1 KB
- 参考文档PRD.md8.6 KB
- 参考文档references/errors.md5.6 KB
- 参考文档references/examples.md12.8 KB
- 参考文档references/implementation.md4.2 KB
- 脚本scripts/basis_calculator.py11.5 KB
- 脚本scripts/derivatives_tracker.py21.9 KB
- 脚本scripts/formatters.py13.7 KB
- 脚本scripts/funding_tracker.py9.3 KB
- 脚本scripts/liquidation_monitor.py11.1 KB
- 脚本scripts/oi_analyzer.py10.1 KB
- 脚本scripts/options_analyzer.py11.0 KB
03 SKILL.md 正文
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
04 同仓库更多 Skills
azure-apim-architecture
Analyzes and explains Azure API Management architecture decisions for enterprise API marketplace implementations using VNet Internal mode, Front Door, hybrid authentication, and multi-environment strategies. Use when discussing APIM component selection, network topology, cost optimization, or comparing alternatives like workspaces vs instances, VNet Internal vs External mode, or Front Door vs Application Gateway.
apiops-deployment
Guides deployment of Azure API Management infrastructure using Infrastructure as Code (Bicep/Terraform), CI/CD pipelines (GitHub Actions/Azure DevOps), and APIOps workflows. Use when deploying APIM, creating pipelines, or implementing dev→test→prod promotion strategies.
apim-policy-authoring
Creates production-ready Azure API Management policy XML for authentication (OAuth 2.0, JWT validation, subscription keys), rate limiting, CORS configuration, error handling, and API transformations. Use when implementing API security, access control, or request/response processing logic.
api-security-review
Reviews Azure API Management configurations for security vulnerabilities, OWASP API Security Top 10 compliance, VNet Internal mode validation, Private Link verification, and Azure Security Benchmark alignment. Use when performing security audits, pre-deployment validation, or compliance reviews.
jira-cli
Interact with Jira from the command line to create, list, view, edit, and transition issues, manage sprints and epics, and perform common Jira workflows. Use when the user asks about Jira tasks, tickets, issues, sprints, or needs to manage project work items.
calculator
Performs arbitrary-precision arithmetic calculations including addition, subtraction, multiplication, division, and exponents. Use when the user asks to calculate, compute, or evaluate math expressions, or when precise decimal arithmetic is needed to avoid floating-point errors.