ib-option-chain

Solid

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.

AI & Automation 229 stars 56 forks Updated today MIT

Install

View on GitHub

Quality Score: 88/100

Stars 20%
79
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
65
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill 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: ```bash uv run python scripts/options.py SYMBOL --expiries ``` Then fetch the chain for a specific expiry: ```bash uv run python scripts/options.py SYMBOL --expiry YYYYMMDD ``` ## Arguments - `SYMBOL` - Ticker symbol (e.g., AAPL, SPY, TSLA) - `--expiries` - List available expiration dates only - `--expiry YYYYMMDD` - Fetch chain for specific date (IB format: YYYYMMDD, no dashes) - `--port` - IB port (default: 7496 for live trading) ## Output Returns JSON with: - `calls` - Array of call options with strike, bid, ask, lastPrice, volume, openInterest, impliedVolatility - `puts` - Array of put options with same fields - `underlying_price` - Current stock price for reference - `source` - "ibkr" Present data as a table. Highlight high volume strikes and notable IV levels. ## Dependencies - `ib-async` ## Timezone All timestamps and time-based calculations must use the `America/New_York` timezone. All JSON output must include `generated_at` (NY time string) and `data_delay` fields.

Details

Author
staskh
Repository
staskh/trading_skills
Created
3 months ago
Last Updated
today
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Solid

option-chain

Get option chain data including calls and puts with strikes, bids, asks, volume, open interest, and implied volatility. Use when user asks about options, option prices, calls, puts, or option chain for a specific expiration date.

229 Updated today
staskh
AI & Automation Solid

ib-trades-history

Fetch trade executions from Interactive Brokers filtered by account, date range, or symbol. Supports live API (~7 days history) and FlexReport (full history). Use when user asks about their trades, executions, or transaction history. Requires TWS or IB Gateway running locally.

229 Updated today
staskh
AI & Automation Solid

ib-portfolio

Get portfolio positions from Interactive Brokers. Use when user asks about their portfolio, positions, holdings, or what stocks they own. Requires TWS or IB Gateway running locally.

229 Updated today
staskh
AI & Automation Listed

longbridge-derivatives

Options (US / HK) and Hong Kong warrants (callable bull/bear, call warrants, put warrants) via Longbridge Securities — option quote, option chain by underlying / expiry, option volume, warrant quote / list / issuers. Returns IV, Greeks, strikes, expiries. Triggers: "期权", "option", "call", "put", "认购", "认沽", "行权价", "到期日", "IV", "希腊字母", "delta", "gamma", "窝轮", "牛熊证", "认购证", "认沽证", "認購", "認沽", "行權價", "到期日", "窩輪", "牛熊證", "option chain", "options expiry", "warrant", "CBBC", "callable bull bear contract".

11 Updated 3 days ago
longbridge
AI & Automation Listed

ibkr

Query Interactive Brokers via the local `ibkr` CLI. Use when the user asks about their IBKR account, positions, P&L, market quotes, option chains (incl. per-leg open interest), official market calendars, local watchlist, daily price history, technical/relative-strength screens, running a market scan, sizing a planned trade by fixed-fractional risk, or checking the market's risk regime (S&P 500 breadth, combined SPY+SPX dealer zero-gamma with 0DTE / 1-7 / term horizon split, the eight-row regime dashboard). Read-only — never attempts to place orders.

2 Updated today
osauer