Skip to main content
ClaudeWave
Skill12k repo starsupdated today

options-advanced

This Claude Code skill provides advanced volatility trading techniques for options markets, including SABR and Local Volatility surface modeling, dynamic Greeks rebalancing across multiple dimensions, calendar spread construction, volatility arbitrage identification, and skew trading strategies. It is designed for traders managing portfolio Greeks beyond simple delta hedging, identifying mispricing opportunities across the volatility surface, and implementing structured multi-leg strategies in equity index and commodity options markets, particularly relevant for 50ETF and 300ETF trading.

Install in Claude Code
Copy
git clone --depth 1 https://github.com/HKUDS/Vibe-Trading /tmp/options-advanced && cp -r /tmp/options-advanced/agent/src/skills/options-advanced ~/.claude/skills/options-advanced
Then start a new Claude Code session; the skill loads automatically.

SKILL.md

# Advanced Options Strategies

## Overview

Go beyond basic option strategies (`covered call` / `protective put`) and focus on trading opportunities along the volatility dimension. Core idea: option price = intrinsic value + time value, and advanced trading essentially trades the volatility expectations embedded behind that time value.

Applicable scenarios:
- Identifying arbitrage opportunities when the volatility surface is abnormal (`skew` / `term structure`)
- Fine-grained management of portfolio Greeks exposures (not just Delta hedging)
- Building structured strategies across maturities and strikes
- Practical application in 50ETF / 300ETF / commodity options

## Core Concepts

### Volatility Surface

Three-dimensional structure: strike × expiry × implied volatility.

**Key dimensions**:
| Dimension | Meaning | Typical Shape |
|------|------|----------|
| Smile / Skew | IV across strikes for the same expiry | China A-shares: left-skewed (`put IV > call IV`) |
| Term Structure | IV across expiries for the same strike | Normal case: near-month IV < far-month IV |
| Surface dynamics | Parallel or nonlinear movement of the entire surface | In panic, the whole surface lifts, and near-month IV lifts faster |

**SABR model parameters**:
```
α (alpha): initial volatility level, around 0.2-0.5
β (beta): CEV exponent, equities usually use 0.5-1.0
ρ (rho): correlation between volatility and the underlying, usually -0.3 to -0.7 in China A-shares (negative = left skew)
ν (nu): volatility of volatility (vol of vol), around 0.3-0.8
```

**Local Vol vs SABR**:
- Local Vol (Dupire): backed out from market prices, exact fit but unstable extrapolation
- SABR: parameterized model, 4 parameters capture surface dynamics and extrapolate more reasonably

### Dynamic Greeks Management

**First-order Greeks**:
| Greek | Meaning | Management Approach |
|-------|------|----------|
| Delta (Δ) | Sensitivity to underlying price | Hedge frequency: daily for ATM, every 2-3 days for OTM |
| Vega (ν) | Sensitivity to IV | Calendar spreads can isolate Vega exposure |
| Theta (Θ) | Time decay | Short-option strategies are naturally positive Theta, but watch Gamma risk |
| Rho (ρ) | Sensitivity to rates | Relevant for long-dated options, usually ignorable for short-dated options |

**Second-order Greeks**:
| Greek | Meaning | Key Scenario |
|-------|------|----------|
| Gamma (Γ) | Rate of change of Delta | Highest near ATM and spikes before expiry |
| Vanna | Sensitivity of Delta to IV | Core Greek for skew trading |
| Volga / Vomma | Sensitivity of Vega to IV | Important when volatility moves sharply |

**Delta hedge frequency decision**:
```
Hedging cost = trading frequency × slippage per rebalance
Unhedged risk = Gamma exposure × underlying volatility²
Optimal frequency (Zakamouline criterion):
  Trigger hedge when Gamma × S² × σ² × Δt > 2 × transaction_cost
Practical rule: ATM Gamma is large -> hedge daily; OTM -> hedge weekly or on threshold triggers
```

## Analysis Framework

### 1. Calendar Spread

**Principle**: sell the near-month option and buy the far-month option at the same strike, profiting from faster near-month Theta decay.

**Entry conditions**:
- Normal term structure (`near-month IV ≤ far-month IV`)
- Expect the underlying to stay in a narrow range
- Open the position 20-30 days before near-month expiry

**50ETF example**:
```
Underlying: 50ETF current price 2.80
Sell: 50ETF near-month C2800  IV=18%, collect premium 0.045
Buy: 50ETF far-month C2800   IV=20%, pay premium 0.082
Net debit: 0.037 (max loss)
Breakeven: profit if the underlying stays in the 2.76-2.84 range at near-month expiry
Max profit: when near-month expires with the underlying right at 2.80, roughly 0.045 minus the time-decay differential
```

**Risk-control points**:
- Large breakout in the underlying → stop loss (if loss exceeds 50% of net debit)
- Near-month IV suddenly rises above far-month IV (term-structure inversion) → close position

### 2. Volatility Arbitrage

**Long Gamma strategy** (buy volatility):
```
Scenario: realized volatility is expected to exceed implied volatility
Trade: buy ATM straddle + Delta hedge
Profit source: Gamma-scalping gains > Theta decay
Key metric:
  Breakeven volatility = IV + Theta/Gamma cost
  Example in 300ETF: buy straddle at IV=16%; if realized volatility >18%, the trade is profitable
```

**Short Gamma strategy** (sell volatility):
```
Scenario: realized volatility is expected to stay below implied volatility
Trade: sell ATM straddle + Delta hedge
Profit source: Theta income > hedging loss
Risk control: set max loss = 2x premium received, close when hit
```

### 3. Skew Trade

**Risk Reversal**:
```
Scenario: skew is too steep (put IV excessively high relative to call IV)
Trade: sell OTM put + buy OTM call (zero-cost or slight net credit)
Exposure: long skew (profit if skew mean-reverts)
50ETF example:
  Sell P2700 IV=22%  collect 0.025
  Buy C2900 IV=16%   pay 0.018
  Net credit 0.007, profiting from skew mean reversion
```

**Butterfly skew trade**:
```
Scenario: localized skew abnormality (IV deviation at a particular strike)
Trade: build a butterfly centered on the abnormal strike
  If IV is too high -> sell that strike (middle leg of the butterfly)
  If IV is too low -> buy that strike
```

### 4. Option Market-Making Basics

**Quoting strategy**:
- Bid-ask spread = `f(Gamma risk, inventory skew, market volatility)`
- Narrow spreads attract flow; wider spreads protect risk
- Inventory-skew management: if Delta exceeds the limit, tilt quotes to induce the other side to offset inventory

**Inventory management**:
```
Delta limit: ±500 underlying-equivalent lots
Gamma limit: daily Gamma PnL should not exceed 2% of account equity
Vega limit: PnL from a 1% IV move should not exceed 1% of account equity
When over the limit: hedge in the market first, adjust quotes second
```

## Output Format

Volatility analysis report:
```
=== Volatility Surface Analysis ===
Underlying: 50ETF  Current pric
vibe-tradingSkill

Professional finance research toolkit — backtesting (7 engines + benchmark comparison panel), factor analysis, Alpha Zoo (452 pre-built alphas across qlib158/alpha101/gtja191/academic), options pricing, 77 finance skills, 29 multi-agent swarm teams, Trade Journal analyzer, and Shadow Account (extract → backtest → render) across 7 data sources (tushare, yfinance, okx, akshare, mootdx, ccxt, futu).

adr-hshareSkill

ADR/H-share/A-share cross-listing premium analysis — track pricing gaps between US-listed ADRs, HK-listed H-shares, and A-shares for arbitrage signals, dual-listing valuation, and delisting risk assessment.

akshareSkill

AKShare financial data aggregator (18k+ stars). Free, no API key. Covers A-shares, US, HK, futures, macro, forex. Primary fallback for tushare and yfinance.

alpha-zooSkill

Browse and bench the bundled alpha zoos — prebuilt cross-sectional factor libraries (Kakushadze 101, GTJA 191, Qlib 158, Fama-French / Carhart). Use when the user asks "which alphas exist", wants metadata on a named alpha, or wants to run IC/IR on a whole zoo over a universe.

ashare-pre-st-filterSkill

A 股 ST/*ST 风险预测框架 — 基于最新中报/三季报或业绩预告/快报,预测下一财年是否会因营收、利润、净资产、分红不达标而被风险警示,并将新浪监管处罚记录作为独立证据面纳入风险等级。仅适用于 A 股,不预测财务造假。

asset-allocationSkill

Asset allocation theory and optimizer usage — MPT / Black-Litterman / risk budgeting / all-weather strategy, including guides for 4 optimizers and rebalancing rules.

backtest-diagnoseSkill

Diagnose failed or underperforming backtests, locate the root cause, and fix the issue

behavioral-financeSkill

Behavioral finance applications: theories of overreaction and underreaction, behavioral explanations for momentum and reversal, investor sentiment cycles, cognitive-bias checklists, and debiasing quantitative strategies.