
Ib Portfolio Action Report
This generates a markdown report of your Interactive Brokers positions with traffic light risk indicators, earnings dates, and technical analysis across all your accounts. It's built for when you need to see what's expiring soon, what's got earnings this week, and what needs attention right now. The script talks to your local TWS or IB Gateway, pulls position data, groups spreads together, and spits out structured JSON that gets formatted into a timestamped report saved to your sandbox. The multi-level urgency breakdown (expiring in 2 days, 1 week, 2 weeks) makes it easy to triage, and having technicals like RSI and MACD alongside earnings dates in one view beats jumping between IB's clunky interface and your broker's different tools.
- GitHub stars
- 248
- last updated
- Jun 11, 2026
Install
$ npx -y skills add staskh/trading_skills --skill ib-portfolio-action-report --agent claude-codeInstalls into .claude/skills of the current project.
Files
IB Portfolio Action Report
Generate a comprehensive portfolio action report that analyzes all positions across Interactive Brokers accounts, fetches earnings dates, and provides traffic-light risk indicators (π΄π‘π’) for each position.
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
Step 1: Gather Data
Note: If
uvis not installed orpyproject.tomlis not found, replaceuv run pythonwithpythonin all commands below.
Sponsors
Details
- Repository
- github.com/staskh/trading_skills
- Categories
- Backend & APIs, Git & Pull Requests, Code Review & Quality, Finance & Trading
- License
- MIT
- First seen
- Jun 11, 2026
More from staskh/trading_skills
All 28- Ib Report Delta Adjusted Notional Exposure
- Ib Stop Loss
- Ib Trades History
- Ib Trailing Stop
- Insider Trading
- Markdown To Pdf
- Price History
- Scanner Bullish
- Scanner Pmcc
- Spread Analysis
- Whale Hunting
- Technical Analysis598
- News Sentiment246
- Fundamentals182
- Stock Quote131
- Greeks128
- Report Stock117
- Option Chain111
- Risk Assessment105
- Earnings Calendar
- Ib Account
- Ib Collar
- Ib Create Consolidated Report
- Ib Find Short Roll