tracking-crypto-derivatives

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Tracking Crypto Derivatives

加密货币衍生品追踪

Overview

概述

Comprehensive derivatives market analysis across centralized and decentralized exchanges. This skill aggregates funding rates, open interest, liquidations, and options data to provide actionable trading insights.
Supported Markets:
  • Perpetual Swaps: Binance, Bybit, OKX, Deribit, BitMEX
  • Futures: Quarterly and monthly contracts
  • Options: Deribit (primary), OKX, Bybit
  • DEX Perpetuals: dYdX, GMX, Drift Protocol
针对中心化和去中心化交易所的全面衍生品市场分析。该Skill聚合资金费率、持仓量、清算数据和期权数据,为交易提供可执行的洞察。
支持的市场:
  • Perpetual Swaps: Binance, Bybit, OKX, Deribit, BitMEX
  • Futures: 季度合约和月度合约
  • Options: Deribit(主要), OKX, Bybit
  • DEX Perpetuals: dYdX, GMX, Drift Protocol

Prerequisites

前提条件

Before using this skill, ensure you have:
  • Python 3.8+ installed
  • Network access to exchange APIs
  • Optional: API keys for higher rate limits
  • Understanding of derivatives concepts (funding, OI, basis)
使用本Skill前,请确保您已具备:
  • 安装Python 3.8+
  • 可访问交易所API的网络权限
  • 可选:API密钥(用于提升请求速率限制)
  • 了解衍生品相关概念(funding、OI、basis)

Instructions

使用说明

Step 1: Check Funding Rates

步骤1:查看资金费率

Monitor funding rates across exchanges to identify sentiment and arbitrage opportunities.
bash
undefined
监控各交易所的资金费率,识别市场情绪和套利机会。
bash
undefined

Check BTC funding rates across all exchanges

查看所有交易所的BTC资金费率

python derivatives_tracker.py funding BTC
python derivatives_tracker.py funding BTC

Check multiple assets

查看多种资产的资金费率

python derivatives_tracker.py funding BTC ETH SOL
python derivatives_tracker.py funding BTC ETH SOL

Show historical average

显示历史平均值

python derivatives_tracker.py funding BTC --history 7d

**Interpret Results**:
- **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
python derivatives_tracker.py funding BTC --history 7d

**结果解读**:
- **正向资金费率**(>0.01%):多头向空头支付费用,市场情绪看涨
- **负向资金费率**(<-0.01%):空头向多头支付费用,市场情绪看跌
- **极端资金费率**(>0.1%):潜在的反向交易机会

Step 2: Analyze Open Interest

步骤2:分析持仓量

Track open interest to gauge market positioning and trend strength.
bash
undefined
追踪持仓量,衡量市场持仓情况和趋势强度。
bash
undefined

Get BTC open interest across exchanges

获取各交易所的BTC持仓量

python derivatives_tracker.py oi BTC
python derivatives_tracker.py oi BTC

Show OI changes over time

显示持仓量随时间的变化

python derivatives_tracker.py oi BTC --changes
python derivatives_tracker.py oi BTC --changes

Compare OI vs price

对比持仓量与价格走势

python derivatives_tracker.py oi BTC --divergence

**OI Interpretation**:
- **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
python derivatives_tracker.py oi BTC --divergence

**持仓量解读**:
- **持仓量上升+价格上涨**:强劲的看涨趋势
- **持仓量上升+价格下跌**:强劲的看跌趋势
- **持仓量下降+价格上涨**:空头平仓反弹
- **持仓量下降+价格下跌**:多头清算离场

Step 3: Monitor Liquidations

步骤3:监控清算数据

Track liquidation levels and recent liquidation events.
bash
undefined
追踪清算价位和近期清算事件。
bash
undefined

Get liquidation heatmap

获取清算热力图

python derivatives_tracker.py liquidations BTC
python derivatives_tracker.py liquidations BTC

Show recent large liquidations

显示近期大额清算事件

python derivatives_tracker.py liquidations BTC --recent
python derivatives_tracker.py liquidations BTC --recent

Set minimum size filter

设置最小清算规模过滤

python derivatives_tracker.py liquidations BTC --min-size 100000

**Liquidation Signals**:
- Large liquidation clusters indicate support/resistance
- Cascading liquidations can accelerate price moves
- Long/short liquidation ratio indicates market direction
python derivatives_tracker.py liquidations BTC --min-size 100000

**清算信号**:
- 大额清算集群代表支撑/阻力位
- 连锁清算可能加速价格波动
- 多空清算比率指示市场方向

Step 4: Analyze Options Market

步骤4:分析期权市场

Research options flow and implied volatility.
bash
undefined
研究期权资金流向和隐含波动率。
bash
undefined

Get options overview

获取期权市场概览

python derivatives_tracker.py options BTC
python derivatives_tracker.py options BTC

Show put/call ratio

显示看跌/看涨比率

python derivatives_tracker.py options BTC --pcr
python derivatives_tracker.py options BTC --pcr

Find max pain for expiry

找出到期日的最大痛点价位

python derivatives_tracker.py options BTC --expiry 2025-01-31
python derivatives_tracker.py options BTC --expiry 2025-01-31

Track large options trades

追踪大额期权交易

python derivatives_tracker.py options BTC --flow

**Options Insights**:
- **High IV rank** (>80): Options expensive, consider selling
- **Low IV rank** (<20): Options cheap, consider buying
- **Max pain**: Price where most options expire worthless
python derivatives_tracker.py options BTC --flow

**期权洞察**:
- **高IV排名**(>80):期权价格偏高,考虑卖出
- **低IV排名**(<20):期权价格偏低,考虑买入
- **最大痛点价位**:多数期权到期作废的价格点位

Step 5: Calculate Basis

步骤5:计算基差

Find basis trading and arbitrage opportunities.
bash
undefined
寻找基差交易和套利机会。
bash
undefined

Get spot-perp basis

获取现货-永续合约基差

python derivatives_tracker.py basis BTC
python derivatives_tracker.py basis BTC

Get quarterly futures basis

获取季度期货基差

python derivatives_tracker.py basis BTC --quarterly
python derivatives_tracker.py basis BTC --quarterly

Show all basis opportunities

显示所有基差交易机会

python derivatives_tracker.py basis --all

**Basis Trading**:
- **Positive basis**: Futures > Spot (contango, normal)
- **Negative basis**: Futures < Spot (backwardation)
- **Cash-and-carry**: Buy spot + sell futures when basis high
python derivatives_tracker.py basis --all

**基差交易**:
- **正向基差**:期货价格>现货价格(升水,正常市场)
- **负向基差**:期货价格<现货价格(贴水)
- **期现套利**:基差较高时,买入现货+卖出期货

Step 6: Full Dashboard

步骤6:完整仪表盘

Get comprehensive derivatives overview.
bash
undefined
获取全面的衍生品市场概览。
bash
undefined

Full derivatives dashboard for BTC

BTC的完整衍生品仪表盘

python derivatives_tracker.py dashboard BTC
python derivatives_tracker.py dashboard BTC

Multi-asset dashboard

多资产仪表盘

python derivatives_tracker.py dashboard BTC ETH SOL
python derivatives_tracker.py dashboard BTC ETH SOL

Export to JSON

导出为JSON格式

python derivatives_tracker.py dashboard BTC --output json

See `{baseDir}/references/implementation.md` for detailed implementation guide.
python derivatives_tracker.py dashboard BTC --output json

详细实现指南请查看`{baseDir}/references/implementation.md`。

Output

输出内容

The skill provides structured reports including:
本Skill提供结构化报告,包括:

Funding Rate Report

资金费率报告

BTC PERPETUAL FUNDING RATES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Exchange    Current    24h Avg    7d Avg    Next Payment
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Binance     +0.0150%   +0.0120%   +0.0080%  2h 15m
Bybit       +0.0180%   +0.0140%   +0.0100%  2h 15m
OKX         +0.0130%   +0.0110%   +0.0090%  2h 15m
Deribit     +0.0200%   +0.0150%   +0.0120%  2h 15m
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Weighted Avg: +0.0158%  |  Annualized: +17.29%
Sentiment: Moderately Bullish
BTC PERPETUAL FUNDING RATES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Exchange    当前费率    24h平均    7天平均    下次结算时间
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Binance     +0.0150%   +0.0120%   +0.0080%  2h 15m
Bybit       +0.0180%   +0.0140%   +0.0100%  2h 15m
OKX         +0.0130%   +0.0110%   +0.0090%  2h 15m
Deribit     +0.0200%   +0.0150%   +0.0120%  2h 15m
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
加权平均: +0.0158%  |  年化费率: +17.29%
市场情绪: 温和看涨

Open Interest Report

持仓量报告

BTC OPEN INTEREST ANALYSIS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Exchange    OI (USD)      24h Chg    7d Chg    Share
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Binance     $8.2B         +2.5%      +8.1%     44.3%
Bybit       $4.5B         +1.8%      +5.2%     24.3%
OKX         $3.1B         +3.2%      +12.5%    16.8%
BitMEX      $1.5B         -0.5%      -2.1%     8.1%
Deribit     $1.2B         +0.8%      +3.4%     6.5%
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Total OI: $18.5B (+2.3% 24h)
Long/Short Ratio: 1.15 (53.5% long)
BTC OPEN INTEREST ANALYSIS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Exchange    持仓量(美元)      24h变化    7天变化    市场占比
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Binance     $8.2B         +2.5%      +8.1%     44.3%
Bybit       $4.5B         +1.8%      +5.2%     24.3%
OKX         $3.1B         +3.2%      +12.5%    16.8%
BitMEX      $1.5B         -0.5%      -2.1%     8.1%
Deribit     $1.2B         +0.8%      +3.4%     6.5%
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
总持仓量: $18.5B (24h变化+2.3%)
多空比率: 1.15 (多头占比53.5%)

Liquidation Heatmap

清算热力图

BTC LIQUIDATION LEVELS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Current Price: $67,500

LONG LIQUIDATIONS (below):
  $65,000 ████████████ $125M (HIGH DENSITY)
  $62,500 ███████      $85M
  $60,000 ████████████████████ $210M (CRITICAL)

SHORT LIQUIDATIONS (above):
  $70,000 █████████    $95M
  $72,500 █████████████ $145M (HIGH DENSITY)
  $75,000 █████████████████ $180M
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
24h Liquidations: Longs $45.2M | Shorts $32.8M
BTC LIQUIDATION LEVELS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
当前价格: $67,500

多头清算价位(当前价格下方):
  $65,000 ████████████ $125M (高密度)
  $62,500 ███████      $85M
  $60,000 ████████████████████ $210M (关键价位)

空头清算价位(当前价格上方):
  $70,000 █████████    $95M
  $72,500 █████████████ $145M (高密度)
  $75,000 █████████████████ $180M
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
24h清算总额: 多头 $45.2M | 空头 $32.8M

Error Handling

错误处理

See
{baseDir}/references/errors.md
for comprehensive error handling.
Common issues:
  • ERR_RATE_LIMIT: Reduce request frequency or add API key
  • ERR_EXCHANGE_DOWN: Exchange API unavailable, try alternative
  • ERR_SYMBOL_INVALID: Check symbol format (BTC, ETH, not BTCUSDT)
详细错误处理指南请查看
{baseDir}/references/errors.md
常见问题:
  • ERR_RATE_LIMIT: 降低请求频率或添加API密钥
  • ERR_EXCHANGE_DOWN: 交易所API不可用,尝试其他交易所
  • ERR_SYMBOL_INVALID: 检查币种格式(应为BTC、ETH,而非BTCUSDT)

Examples

示例

See
{baseDir}/references/examples.md
for detailed examples.
Quick examples:
bash
undefined
详细示例请查看
{baseDir}/references/examples.md
快速示例:
bash
undefined

Morning derivatives check

晨间衍生品市场检查

python derivatives_tracker.py dashboard BTC ETH SOL
python derivatives_tracker.py dashboard BTC ETH SOL

Monitor funding for arbitrage

监控资金费率以寻找套利机会

python derivatives_tracker.py funding BTC --alert-threshold 0.08
python derivatives_tracker.py funding BTC --alert-threshold 0.08

Pre-expiry options analysis

到期日前期权分析

python derivatives_tracker.py options BTC --expiry friday
python derivatives_tracker.py options BTC --expiry friday

Find basis trading opportunities

寻找基差交易机会

python derivatives_tracker.py basis --all --min-yield 5
undefined
python derivatives_tracker.py basis --all --min-yield 5
undefined

Resources

参考资源

Data Sources

数据来源

  • Coinglass: Aggregated derivatives data
  • Exchange APIs: Binance, Bybit, OKX, Deribit
  • The Graph: DEX perpetuals data
  • Coinglass: 聚合衍生品数据
  • Exchange APIs: Binance, Bybit, OKX, Deribit
  • The Graph: DEX永续合约数据

Key Concepts

核心概念

  • Funding Rate: Payment between longs/shorts every 8h
  • Open Interest: Total outstanding contracts
  • Basis: Difference between futures and spot price
  • Max Pain: Strike where most options expire worthless
  • IV Rank: Current IV percentile vs historical
  • Funding Rate: 多头与空头每8小时进行一次的费用支付
  • Open Interest: 未平仓合约总数量
  • Basis: 期货价格与现货价格的差值
  • Max Pain: 多数期权到期作废的行权价位
  • IV Rank: 当前隐含波动率相对于历史数据的百分位

Risk Warning

风险提示

Derivatives are leveraged instruments with high risk of loss.
  • Funding costs accumulate over time
  • Liquidations can happen rapidly
  • Options can expire worthless
  • This tool provides analysis only, not financial advice
衍生品是杠杆工具,具有高亏损风险。
  • 资金成本会随时间累积
  • 清算可能快速发生
  • 期权可能到期作废
  • 本工具仅提供分析,不构成投资建议