AN

Monitor institutional options flow and derivatives market sentiment.

Install

mkdir -p .claude/skills/analyzing-options-flow && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/8505" && unzip -o skill.zip -d .claude/skills/analyzing-options-flow && rm skill.zip

Installs to .claude/skills/analyzing-options-flow

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Track crypto options flow to identify institutional positioning and
67 charsno explicit “when” trigger
Advanced

Key capabilities

  • Track crypto options flow
  • Identify institutional positioning
  • Calculate put/call ratios
  • Analyze implied volatility term structure
  • Detect unusual block trades

How it works

The tool connects to derivatives exchange APIs and WebSocket feeds to aggregate options data. It calculates metrics like max pain, put/call ratios, and IV curves to identify market sentiment and institutional activity.

Inputs & outputs

You give it
Crypto derivatives exchange data
You get back
Options chain analysis and institutional flow report

When to use analyzing-options-flow

  • Retrieve real-time options chain data
  • Identify institutional positioning in BTC and ETH
  • Analyze open interest heatmaps
  • Monitor unusual derivatives activity

About this skill

Analyzing Options Flow

Overview

Track and analyze crypto options flow on centralized derivatives exchanges (Deribit, OKX, Bybit) to identify institutional positioning, gauge market sentiment, and detect unusual activity in BTC and ETH options markets.

Prerequisites

  • API credentials for at least one crypto derivatives exchange (Deribit API key recommended; OKX or Bybit as alternatives)
  • Python 3.8+ with requests and websocket-client libraries installed
  • Optional: pandas and numpy for advanced statistical analysis of flow data
  • Understanding of options terminology: strike price, expiry, implied volatility, delta, gamma, open interest, and premium
  • Network access to exchange WebSocket feeds for real-time flow monitoring

Instructions

  1. Load exchange API credentials from ${CLAUDE_SKILL_DIR}/config/crypto-apis.env using the Read tool to authenticate against derivatives exchange endpoints.
  2. Run Bash(crypto:options-*) to connect to the Deribit options data feed and pull the current options chain for BTC or ETH, including all active strikes and expiries.
  3. Retrieve open interest data across all strike prices and expiration dates to build an open interest heatmap showing where positions are concentrated.
  4. Calculate the aggregate put/call ratio by volume and by open interest to assess overall market sentiment (ratio above 1.0 indicates bearish bias; below 1.0 indicates bullish).
  5. Filter for block trades exceeding a configurable notional threshold (e.g., $500K+) to isolate institutional-sized activity from retail noise.
  6. Analyze the implied volatility term structure across expiry dates to detect vol compression (potential breakout ahead) or vol expansion (uncertainty increasing).
  7. Track max pain levels for upcoming expiries by computing the strike price at which the most options expire worthless, indicating likely price magnetism near expiry.
  8. Compare recent flow data against historical baselines (7-day and 30-day rolling averages) to flag statistically unusual positioning.
  9. Generate a flow summary report with actionable signals: bullish large-block calls, bearish put sweeps, IV skew shifts, and OI buildup at key strikes.
  10. Export results using --format json or --format csv for integration with trading dashboards or alerting systems.

See ${CLAUDE_SKILL_DIR}/references/implementation.md for the full implementation workflow.

Output

  • Options chain tables showing strike, expiry, bid/ask, IV, delta, gamma, open interest, and volume for each contract
  • Put/call ratio summary (by volume and open interest) with historical comparison
  • Block trade log listing timestamp, direction (buy/sell), strike, expiry, size, premium, and implied volatility
  • Open interest heatmap data mapping strike prices against expiration dates with position concentration
  • Max pain calculation per expiry date with the optimal pain strike and dollar value at risk
  • Implied volatility term structure curves across near-term and far-term expiries
  • Unusual activity alerts flagging trades exceeding 2 standard deviations from the rolling average
  • JSON or CSV export files for downstream analysis and dashboard integration

Error Handling

ErrorCauseSolution
API Rate Limit ExceededToo many requests to the derivatives exchange APIImplement request throttling with 100ms minimum between calls; use WebSocket feeds for real-time data instead of polling REST endpoints; upgrade API tier if needed
Cannot connect to blockchain node or timeoutRPC endpoint unreachable when resolving on-chain settlement dataSwitch to a backup RPC endpoint; verify network connectivity; confirm the node is fully synced
Invalid API key or signature mismatchExchange API authentication failureRegenerate API keys on the exchange; verify key permissions include read access to derivatives data; check system clock synchronization (HMAC signatures require accurate timestamps)
No options data for instrumentQueried an expired or non-existent options contractVerify the instrument name matches exchange conventions (e.g., BTC-28MAR25-100000-C on Deribit); check that the expiry has not already passed
WebSocket connection droppedExchange feed disconnection due to inactivity or network issueImplement automatic reconnection with exponential backoff; send periodic ping frames to maintain the connection
Insufficient historical dataBaseline period too short for statistical comparisonExtend the rolling window from 7 days to 30 days; ensure the data collection pipeline has been running long enough to accumulate history

Examples

BTC Options Sentiment Snapshot

# Pull current BTC options chain and compute put/call ratios
python options_flow.py btc --summary

Returns the aggregate put/call ratio, top 5 strikes by open interest, max pain for the nearest expiry, and the current implied volatility at-the-money. A put/call ratio of 0.65 with heavy call OI at the $120K strike suggests bullish institutional positioning.

Detect Institutional Block Trades

# Filter for block trades above $1M notional in the last 24 hours
python options_flow.py btc --blocks --min-notional 1000000 --period 24h  # 1000000 = 1M limit

Lists all block trades exceeding the threshold with direction inference (aggressor side), strike, expiry, premium paid, and IV at execution. Useful for spotting large directional bets before they move the underlying.

ETH Implied Volatility Term Structure

# Generate IV term structure for ETH across all active expiries
python options_flow.py eth --iv-curve --format json > eth_iv_term.json

Exports the IV term structure as JSON. Flat or inverted term structures (near-term IV higher than far-term) often precede sharp directional moves, while steep upward-sloping curves indicate calm near-term expectations.

Resources

  • Deribit API Documentation -- primary exchange for crypto options data, WebSocket and REST endpoints
  • Laevitas Analytics -- crypto derivatives analytics dashboard with options flow visualization
  • Greeks.live -- real-time crypto options analytics and block trade tracking
  • Amberdata Derivatives -- institutional-grade crypto derivatives data API
  • The Block Research -- aggregated crypto options market data and charts

When not to use it

  • Executing trades directly
  • Analyzing non-crypto derivatives

Prerequisites

Exchange API credentialsPython 3.8+Network access to WebSocket feeds

Limitations

  • API rate limits
  • Requires accurate system clock for HMAC signatures

How it compares

It automates the aggregation and statistical analysis of options flow data, which is typically performed manually via trading dashboards.

Compared to similar skills

analyzing-options-flow side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
analyzing-options-flow (this skill)025dReviewAdvanced
model-usage52moReviewBeginner
tracking-crypto-derivatives425dReviewIntermediate
weights-and-biases37moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

More by jeremylongshore

View all by jeremylongshore

analyzing-logs

jeremylongshore

Analyze application logs to detect performance issues, identify error patterns, and improve stability by extracting key insights.

14123

ollama-setup

jeremylongshore

Configure auto-configure Ollama when user needs local LLM deployment, free AI alternatives, or wants to eliminate hosted API costs. Trigger phrases: "install ollama", "local AI", "free LLM", "self-hosted AI", "replace OpenAI", "no API costs". Use when appropriate context detected. Trigger with relevant phrases based on skill purpose.

1167

backtesting-trading-strategies

jeremylongshore

Backtest crypto and traditional trading strategies against historical data. Calculates performance metrics (Sharpe, Sortino, max drawdown), generates equity curves, and optimizes strategy parameters. Use when user wants to test a trading strategy, validate signals, or compare approaches. Trigger with phrases like "backtest strategy", "test trading strategy", "historical performance", "simulate trades", "optimize parameters", or "validate signals".

1071

generating-database-seed-data

jeremylongshore

Process this skill enables AI assistant to generate realistic test data and database seed scripts for development and testing environments. it uses faker libraries to create realistic data, maintains relational integrity, and allows configurable data volumes. u... Use when working with databases or data models. Trigger with phrases like 'database', 'query', or 'schema'.

1033

cursor-codebase-indexing

jeremylongshore

Execute set up and optimize Cursor codebase indexing. Triggers on "cursor index setup", "codebase indexing", "index codebase", "cursor semantic search". Use when working with cursor codebase indexing functionality. Trigger with phrases like "cursor codebase indexing", "cursor indexing", "cursor".

885

testing-mobile-apps

jeremylongshore

Execute mobile app testing on iOS and Android devices/simulators. Use when performing specialized testing. Trigger with phrases like "test mobile app", "run iOS tests", or "validate Android functionality".

810

You might also like

model-usage

openclaw

Use CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.

548

tracking-crypto-derivatives

jeremylongshore

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".

437

weights-and-biases

davila7

Track ML experiments with automatic logging, visualize training in real-time, optimize hyperparameters with sweeps, and manage model registry with W&B - collaborative MLOps platform

325

tooluniverse-pharmacovigilance

mims-harvard

Analyze drug safety signals from FDA adverse event reports, label warnings, and pharmacogenomic data. Calculates disproportionality measures (PRR, ROR), identifies serious adverse events, assesses pharmacogenomic risk variants. Use when asked about drug safety, adverse events, post-market surveillance, or risk-benefit assessment.

323

analyzing-mempool

jeremylongshore

Monitor blockchain mempools for pending transactions, gas analysis, and MEV opportunities. Use when analyzing pending transactions, optimizing gas prices, or researching MEV. Trigger with phrases like "check mempool", "scan pending txs", "find MEV", "gas price analysis", or "pending swaps".

318

agent-session-monitor

alibaba

Real-time agent conversation monitoring - monitors Higress access logs, aggregates conversations by session, tracks token usage. Supports web interface for viewing complete conversation history and costs. Use when users ask about current session token consumption, conversation history, or cost statistics.

26

Search skills

Search the agent skills registry