New to Claude Skills? Learn how to install them →

jeremylongshore on GitHub

Analyzing Options Flow

Free

Monitor crypto options to gauge market sentiment and positioning.

Get this skill

Free · Opens the source repo

What Analyzing Options Flow does

The Analyzing Options Flow skill enables users to track and analyze options flow on major crypto derivatives exchanges such as Deribit, OKX, and Bybit. This skill is particularly useful for traders and analysts looking to understand institutional positioning and market sentiment in the BTC and ETH options markets. By leveraging real-time data from these exchanges, users can identify unusual activity and make informed trading decisions based on comprehensive analysis.

To use this skill, you need API credentials from at least one of the supported exchanges, along with a basic understanding of options terminology. The skill provides a structured workflow to connect to the exchange's data feeds, retrieve relevant options data, and perform various analyses, including calculating put/call ratios, tracking open interest, and identifying block trades that indicate significant institutional activity.

The skill also includes features for generating reports that summarize key metrics and insights, such as max pain levels and implied volatility term structures. These outputs can be exported in JSON or CSV formats, making it easy to integrate the results into trading dashboards or alerting systems. This functionality is essential for traders who want to stay ahead of market movements and capitalize on opportunities based on institutional behavior.

Overall, the Analyzing Options Flow skill is designed for crypto traders and analysts who require a detailed view of the options market to enhance their trading strategies. By utilizing this skill, users can gain a competitive edge through data-driven insights into market dynamics.

When to use it

Use this skill when you need to monitor options flow for BTC and ETH to inform trading strategies or gauge market sentiment.

When not to use it

This skill may not be suitable for casual traders or those unfamiliar with options trading concepts, as it requires a solid understanding of options terminology and market dynamics.

What you can build with it

Market Sentiment Analysis

Use the skill to pull the current options chain and compute put/call ratios to assess market sentiment.

Tracking Institutional Activity

Filter for block trades to identify significant institutional activity that may influence market movements.

Implied Volatility Insights

Generate implied volatility term structures to detect potential market shifts based on volatility trends.

How to install Analyzing Options Flow

View source

1. Install with the skills CLI

npx skills add jeremylongshore/claude-code-plugins-plus-skills/analyzing-options-flow --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by jeremylongshore

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

Frequently asked questions about Analyzing Options Flow

Similar skills