ib-option-chain
Get option chain data from Interactive Brokers for equities, ETFs, and futures (FOP), including calls and puts with strikes, bids, asks, volume, implied volatility, and model Greeks
Install / Use
npx skills add staskh/trading_skills --skill ib-option-chainInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
Development & EngineeringSupported Platforms
Tags
Our assessment of ib-option-chain
ib-option-chain scores 83/100 on our quality scale, 3112th of 4,619 Development & Engineering skills we index.
Its SKILL.md is 3.4 KB long, split into 7 sections with 2 code examples: a solid amount of guidance for an agent.
It has 369 GitHub stars, a meaningful sign that others use it.
Maintenance, license and trust
- The repository was last updated 17 days ago, so ib-option-chain is actively maintained.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands.
Automated pattern scan on 2026-10-05. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
ib-option-chain compared with similar skills
All 4 of these similar skills score higher than ib-option-chain; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| ib-option-chain (this skill)by staskh | 83 | 369 | 17d ago | SKILL.md |
| ai-job-searchby MadsLorentzen | 100 | 45.0k | 1d ago | CLAUDE.md |
| claude-howtoby luongnv89 | 100 | 41.7k | 4d ago | CLAUDE.md |
| algorithmic-artby anthropics | 100 | 177.9k | 12d ago | SKILL.md |
| pptxby anthropics | 100 | 177.9k | 12d ago | SKILL.md |
Frequently asked questions
- How do I install ib-option-chain?
- Run
npx skills add staskh/trading_skills --skill ib-option-chain. The install tabs above show the steps for each supported agent. - Which AI agents does ib-option-chain work with?
- It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is ib-option-chain safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. It is MIT-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is ib-option-chain still maintained?
- The repository was last updated 17 days ago, so ib-option-chain is actively maintained.
Skill content
View source on GitHubname: ib-option-chain description: Get option chain data from Interactive Brokers for equities, ETFs, and futures (FOP), including calls and puts with strikes, bids, asks, volume, implied volatility, and model Greeks. Use when user asks about options using IBKR data, futures options (NQ/ES/CL/GC...), or needs real-time option quotes from their broker. Requires TWS or IB Gateway running locally. dependencies: ["trading-skills"]
IB Option Chain
Fetch option chain data from Interactive Brokers for a specific expiration date.
Handles equities/ETFs (Stock/OPT) and futures options (FOP). The asset type and
exchange are resolved from IB contract details (no hardcoded symbol table): auto-detect
tries a SMART stock first and falls back to a future when no stock exists (so NQ, GC,
RTY resolve as futures, while AAPL resolves as a stock even though it has an obscure
single-stock future). Tickers that are both a stock and a futures root (e.g. ES=Eversource,
CL=Colgate) default to the equity — pass --sec-type fut to force the future.
IB Connection
TWS or IB Gateway must be running locally with API enabled:
- Paper trading — port 7497
- Live trading — port 7496
IB_PORTenv var — default port when--portis omitted (e.g.IB_PORT=4001for a Gateway container). Precedence:--portflag >IB_PORT> built-in default. Set it in the shell or a.envfile.
Port fallback: If the configured port fails, automatically retry on the other port. If the retry succeeds, save to memory which account type worked (live/paper) and reuse it for all IB skill calls in this and future sessions — until the user explicitly asks for the other account. If both ports fail, ask the user to verify that TWS or IB Gateway is running with API access enabled.
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
SYMBOL- Ticker symbol. Equity/ETF (e.g., AAPL, SPY, TSLA) or futures root (e.g., NQ, ES, CL, GC) — asset type is auto-detected via IB.--sec-type {stk,fut}- Force the asset type. Default: auto-detect (stock-first). Usefutfor ambiguous roots like ES/CL when you mean the future.--expiries- List available expiration dates only--expiry YYYYMMDD- Fetch chain for specific date (IB format: YYYYMMDD, no dashes)--port- IB port (default: 7497 for paper trading)
Output
Returns JSON with:
calls- Array of call options with strike, bid, ask, lastPrice, volume, openInterest, impliedVolatility,greeks(delta/gamma/theta/vega/iv from IB model), andmultiplier(futures only)puts- Array of put options with same fieldsunderlying_price- Current underlying price for reference (stock/ETF price or continuous-future price)asset_type- "stock" or "future"source- "ibkr"
For futures, only expiries up to the front continuous-future's expiry are returned; longer-dated FOPs require the next quarter's future. Futures quote nearly 24h on Globex, so Greeks populate pre-market.
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.
Related Skills
ai-job-search
45.0kThe job search that runs on your machine. AI job application framework built on Claude Code: evaluate postings, tailor CVs, write cover letters, prep interviews. Fork it and own it.
claude-howto
41.7kA visual, example-driven guide to Claude Code — from basic concepts to advanced agents, with copy-paste templates that bring immediate value.
algorithmic-art
177.9kCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems.
pptx
177.9kUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an em…
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
