Install any skill in seconds. Free to start, no credit card required.
Get Started Free →staskh/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.
Passed 8 of 13 test cases with the skill, and 6 of 13 without it.
and 1 more in the full report
4 fixed9 passed either way8 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 4 test cases the skill fixed. Same model, same prompt, with and without the skill.
In the structured JSON output returned by the option chain script, what string literal value must be assigned to the `source` attribute?
| Checked | Without skill | With skill |
|---|---|---|
| States that the source field value is ibkr | Missed | Passed |
The instructions your model reads when the skill loads.
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.
TWS or IB Gateway must be running locally with API enabled:
IB_PORT env var — default port when --port is omitted (e.g. IB_PORT=4001 for a Gateway container). Precedence: --port flag > IB_PORT > built-in default. Set it in the shell or a .env file.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.
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
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). Use fut for 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)test cases passed, vs 6 / 13 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.