Trading_skills ib-option-chain
Get option chain data from Interactive Brokers including calls and puts with strikes, bids, asks, volume, and implied volatility. Use when user asks about options using IBKR data, or needs real-time option quotes from their broker. Requires TWS or IB Gateway running locally.
install
source · Clone the upstream repo
git clone https://github.com/staskh/trading_skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/staskh/trading_skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/.claude/skills/ib-option-chain" ~/.claude/skills/staskh-trading-skills-ib-option-chain && rm -rf "$T"
manifest:
.claude/skills/ib-option-chain/SKILL.mdsource content
IB Option Chain
Fetch option chain data from Interactive Brokers for a specific expiration date.
Prerequisites
User must have TWS or IB Gateway running locally with API enabled:
- Paper trading: port 7497
- Live trading: port 7496
Instructions
First, get available expiration dates:
uv run python scripts/options.py SYMBOL --expiries
Then fetch the chain for a specific expiry:
uv run python scripts/options.py SYMBOL --expiry YYYYMMDD
Arguments
- Ticker symbol (e.g., AAPL, SPY, TSLA)SYMBOL
- List available expiration dates only--expiries
- Fetch chain for specific date (IB format: YYYYMMDD, no dashes)--expiry YYYYMMDD
- IB port (default: 7496 for live trading)--port
Output
Returns JSON with:
- Array of call options with strike, bid, ask, lastPrice, volume, openInterest, impliedVolatilitycalls
- Array of put options with same fieldsputs
- Current stock price for referenceunderlying_price
- "ibkr"source
Present data as a table. Highlight high volume strikes and notable IV levels.
Dependencies
ib-async