{"slug": "ibkr-claude-6-copy-paste-prompts-portfolio-x-ray-stock-hunt-1-yr-outlook-daily", "title": "IBKR + Claude — 6 copy-paste prompts (portfolio X-ray, stock hunt, 1-yr outlook, daily brief, options manager, options spotter)", "summary": "A developer created six copy-paste prompts for integrating Interactive Brokers (IBKR) with Claude AI, enabling portfolio X-ray dashboards, stock hunting with deep-dive analyst reports, one-year outlooks, daily briefs, and options management. The prompts leverage IBKR data to generate visual HTML reports with charts, risk flags, and actionable suggestions.", "body_md": "[ibkr-claude-prompts.md](https://gist.github.com/ahvin2020/5c4417a0cc327f8390adcac761e6452c#file-ibkr-claude-prompts-md)\n# IBKR + Claude — Round 2: the 6 prompts (copy-paste)\n\n## 1 — Portfolio X-ray dashboard (visual + actionable)\n\n```\nConnect to my IBKR account and build me an actionable portfolio X-ray as a\nself-contained HTML dashboard I can open in my browser.\n\nGOLDEN RULE — be GRAPHICAL-FIRST: show every piece of information as a visual\n(chart, gauge, heatmap, treemap, colored badge, progress bar, or sparkline)\nwherever it's possible, with the numbers as labels inside the visual. Use plain\ntext only for short titles and the improvement suggestions. If you catch yourself\nabout to write a paragraph or a plain table, convert it into a chart instead.\nUse color consistently: green = good/up, red = risk/down.\n\nPull my live positions, account value, cash/margin used, and YTD + 1-year\nperformance, then render:\n- KPI tiles: net liquidation value, YTD + 1-year returns (with up/down arrows and a\n  sparkline), and a margin/leverage GAUGE\n- equity curve: line/area chart for the year\n- sector allocation: donut chart\n- top holdings: horizontal bar chart with % weight labels\n- winners & losers: one diverging bar chart (green right / red left)\n- LOOK-THROUGH exposure: a bar chart or treemap of my TRUE exposure to each major\n  company — DIRECT holdings PLUS INDIRECT holdings inside my ETFs (e.g. real NVDA /\n  AAPL / MSFT once you look inside QQQ and SCHG). Use the ETFs' known top holdings\n  and weights; label it as an estimate.\n- concentration: a treemap or heatmap so over-weight positions/sectors pop visually\n- risk flags: colored badges / traffic-light indicators (single-stock, sector,\n  look-through concentration, margin/leverage) — NOT a paragraph\n\nThe only text section: 3-5 actionable improvement suggestions, each as a compact\ncard with a severity color and one line of reasoning.\n\nWhere IBKR doesn't provide the data (like exact ETF holdings), still visualize it\nwith best estimates and mark it as estimated — don't drop it. Output as one\nself-contained HTML file.\n```\n\n## 2 — Find a new stock, then deep-dive it (hunt → analyst report)\n\n```\nHelp me find a new stock to buy that I don't already own, then deep-dive it like an\nanalyst.\n\nFirst, HUNT — but before digging in, ask me how I want to hunt: (a) pick from a few\ninvestment themes you propose, (b) I give you a specific style or sector, or (c) if\nI'm not sure, just default to quality businesses that have recently sold off and look\nundervalued. Wait for my pick (unless I've already told you). Then, using my choice,\nlook through IBKR's investment themes plus a couple of names that are beaten down or\nunusually in the news right now. Verify they're real tickers, skip anything I already\nhold, and give me a quick ranked shortlist of ~10 with a one-line reason each.\n\nThen DEEP-DIVE your top 3 picks — give me a full equity research report for each,\nevery claim evidence-based, clearly separating facts from inference from speculation:\n1. Business model — how it makes money, revenue segments, is it sustainable\n2. Financial health — operating cash flow, free cash flow, debt\n3. Valuation — multiples vs peers (P/E, EV/Revenue, P/B) AND a rough DCF /\n   intrinsic-value estimate (show the key assumptions and give a fair-value RANGE,\n   not one magic number); is it cheap or expensive vs its growth?\n4. Macro & competitive — rates, regulation, competitors; the biggest threat\n5. Catalysts — both the obvious ones and the hidden/underappreciated ones\n6. Risks — regulatory, concentration, competitive, execution, valuation\n7. Investment thesis — strongest bull AND bear case, then: is it asymmetric\n   risk/reward at today's price, and what are the key metrics to watch?\n\nGive me everything as a visual HTML report I can open in my browser. Cite your\nsources and don't make up tickers or numbers.\n```\n\n## 3 — Where's my stock headed next year? (macro + fundamentals + technicals + catalysts)\n\n```\nConnect to my IBKR account. For each of my main holdings (or a stock I name), give\nme a grounded view of where it might go over the next year — combining macro,\nfundamentals, technicals, and upcoming catalysts. I know it's not a prediction; I\nwant a reasoned range, not a guess.\n\nHandle ETFs differently from individual stocks: for an ETF (like QQQ or SCHG), base\nthe outlook on the index it tracks — the macro/rate backdrop, the index's overall\nvaluation and earnings growth, and how concentrated it is — not company-level\nfundamentals.\n\nFor each holding:\n- Technicals — where it's trading vs its 52-week range, the trend, and momentum.\n- Fundamentals — growth, valuation, and whether the business is improving or\n  deteriorating.\n- Macro — the rate / sector / demand backdrop that helps or hurts it.\n- Upcoming catalysts — earnings dates, product launches, or events in the next 12\n  months that could move it.\n- Then give me bull / base / bear scenarios with rough 1-year price targets and the\n  reasoning for each, plus a realistic range using its historical volatility as a\n  sanity check.\n\nShow it as a visual HTML report — a fan chart or bull/base/bear bands per stock,\nwith the catalysts marked on a timeline. Be clear what's fact vs your judgment, cite\nsources for fundamentals and catalysts, and don't fabricate any numbers or earnings\ndates.\n```\n\n## 4 — Daily portfolio brief + buy-alerts (scheduled)\n\n```\nEvery day, build me a portfolio brief and email it to me as a nicely formatted,\nvisual HTML email (use my Resend API key). Connect to my IBKR account and cover:\n\n1. Snapshot — total portfolio value and the day's change (color-coded green/red),\n   plus my biggest movers with one line on what drove each.\n2. News & events — overnight or market news affecting my holdings, and a\n   macro/catalyst watch (rate decisions, big economic data, sector events) that\n   could move my positions.\n3. Upcoming earnings — any of my holdings reporting soon, with the date and the\n   expected move.\n4. Buy alerts — flag any current holding that looks like a good buy to add now\n   (within ~10% of its 52-week low, OR down 20%+ from its high, OR an elevated\n   implied-volatility percentile / fear); give the price, the trigger, and one line.\n5. Act today — a short list of anything I should actually do.\n\nMake it scannable and visual: color for up/down, simple bar/sparkline cues where\nthey help, clear sections. (Email can't run interactive charts, so keep visuals as\nstyled HTML and static cues.) Also generate the full interactive HTML portfolio\ndashboard (my visual X-ray) and ATTACH it to the email — so the body is the quick\ndaily read and the attachment is the full visual I can open in my browser. If a\nsection has nothing notable, say so in one line. Cite sources for news and earnings\ndates, and don't fabricate them.\n```\n\n## 5 — Options position manager (roll · close at 50% · assignment watch)\n\n```\nConnect to my IBKR account and act as my options position manager — I sell premium\n(covered calls and cash-secured puts), so go through every open option I have and\ntell me what to actually do with each one today.\n\nFor each open option, first lay out the facts:\n- Days to expiry, the strike, and whether it's a covered call or a cash-secured put\n  (flag any call that isn't covered by shares, or any put I don't have the cash for).\n- Where the stock is now vs my strike and my breakeven — in the money or out, and by\n  how much.\n- Approximate assignment risk: the connector gives implied volatility but NOT the\n  Greeks, so compute the delta yourself (Black-Scholes from IV, spot, strike, DTE)\n  and read it as a rough assignment probability. If option_midpoint_iv looks invalid,\n  fall back to implied_vol, and say when the data is thin.\n- Profit so far as a % of the premium I sold it for, and the current P/L.\n\nThen — and this is the part that should drive the decision, not just the delta and a\n50% rule — read what's actually happening with the underlying between now and expiry:\n- Technicals: the trend, and where the stock is sitting versus the support/resistance\n  that matters for my strike. Is it about to break through my strike, or stalling\n  short of it?\n- Catalysts before expiry: ANY earnings date inside the life of the option is the big\n  one — assignment risk and IV both jump around earnings — plus product launches or\n  events. And the macro backdrop (a Fed decision, CPI, a sector event) that could\n  move it before it expires.\n- The stock itself: is my original reason still intact — for a put, would I still be\n  happy to own it at the strike; for a call, do I actually want to keep the shares or\n  am I fine letting them go?\n\nNow give me the call for each one, justified by that read (not just the mechanics) in\na line or two:\n- HOLD — thesis and technicals are fine and there's still premium to collect; let it\n  ride.\n- CLOSE — I've captured most of the premium (e.g. ~50%+) and the risk/reward of\n  holding the rest is poor, OR a catalyst before expiry isn't worth sitting through;\n  take it off.\n- ROLL — under pressure or near expiry and I want to stay in: suggest a specific roll\n  (out in time, and down/up in strike, around the support/resistance level) with the\n  target strike, expiry, and the rough net credit/debit — and roll PAST the next\n  earnings date, not into it.\n- ASSIGNMENT RISK — deep in the money or about to be assigned: spell out what\n  assignment would mean (shares called away, or stock put to me at the strike), and\n  whether — given the technicals and the catalyst calendar — I should let it happen or\n  defend it.\n\nBuild it as a self-contained, GRAPHICAL-FIRST HTML report I can open in my browser —\nshow every position as its own card, sorted most-urgent first (nearest expiry +\nhighest assignment risk at the top). On each card: a DTE countdown, an\nassignment-risk GAUGE (the delta, green→red), a moneyness bar (spot vs strike vs\nbreakeven), a premium-captured progress bar (green), a one-line technical read, a\nCATALYST flag if anything lands before expiry (e.g. a red \"⚠ earnings in 5 days\"\nbadge), and a big colored ACTION badge (hold = green, close = blue, roll = amber,\nassignment risk = red). Up top, KPI tiles: number of open positions, how many need\naction now, how many have a catalyst before expiry, total premium still at risk, and\npremium captured so far. End with a \"what I'd do today\" list, ordered by urgency.\n\nBe clear which numbers are live from IBKR (price, IV, strikes, P/L, the technicals)\nvs computed (the delta / assignment odds) vs from the web (earnings dates, macro\nevents) vs your own judgment (the hold/close/roll call). Cite sources for earnings\ndates and news, don't fabricate any dates, flag any missing or unreliable option data\ninstead of guessing, and treat this as analysis, not advice.\n```\n\n## 6 — Options opportunity spotter (is now a good time to sell a CC / CSP?)\n\n```\nConnect to my IBKR account and help me spot good options-selling opportunities —\ncovered calls and cash-secured puts — judged on whether NOW is actually a good time\nto sell premium (technicals, implied volatility, and the macro backdrop), not just a\nlist of strikes.\n\nFirst, before you run anything, ask me up front if there are any specific tickers I'm\neyeing — and let me skip if I don't have any. Then run two sweeps end to end without\nstopping to ask again:\n\n1. My whole portfolio — for each holding where I own at least 100 shares, check if\n   it's a good moment to sell a COVERED CALL (e.g. stock near resistance / overbought\n   / rich IV). And for names I hold or have cash to add to, whether it's a good moment\n   to sell a CASH-SECURED PUT (e.g. stock near support / pulled back / elevated IV).\n   Surface only the setups that genuinely look good right now — don't force trades.\n\n2. Any tickers I named up front — judge whether now's a good time to sell a CSP or CC\n   on each.\n\nFor every opportunity, give me: WHY now is a good time (the technical + IV + macro\nread in a line or two), then the trade — strike, expiry, premium, IV, delta, and\nannualized yield. Target ~0.20-0.30 delta and 30-45 days to expiry, skip expiries\nthat span an earnings date, and only liquid contracts (tight bid/ask, decent open\ninterest). For puts, check I have the buying power.\n\nBuild it as a self-contained, GRAPHICAL-FIRST HTML report (color-coded opportunity\ncards, IV-percentile and annualized-yield bars, a quick technical read per name). The\nconnector gives IV but not the Greeks, so compute delta yourself. Be clear which\nnumbers are live from IBKR (price, IV, technicals) vs your own read (the macro view\nand any earnings dates) — cite sources for those, and don't fabricate earnings dates.\nFlag any missing or unreliable option data, and treat this as analysis, not advice.\n```\n\n", "url": "https://wpnews.pro/news/ibkr-claude-6-copy-paste-prompts-portfolio-x-ray-stock-hunt-1-yr-outlook-daily", "canonical_source": "https://gist.github.com/ahvin2020/5c4417a0cc327f8390adcac761e6452c", "published_at": "2026-06-27 23:21:58+00:00", "updated_at": "2026-06-28 22:58:22.073476+00:00", "lang": "en", "topics": ["artificial-intelligence", "large-language-models", "ai-tools", "developer-tools", "generative-ai"], "entities": ["Interactive Brokers", "Claude", "IBKR", "NVDA", "AAPL", "MSFT", "QQQ", "SCHG"], "alternates": {"html": "https://wpnews.pro/news/ibkr-claude-6-copy-paste-prompts-portfolio-x-ray-stock-hunt-1-yr-outlook-daily", "markdown": "https://wpnews.pro/news/ibkr-claude-6-copy-paste-prompts-portfolio-x-ray-stock-hunt-1-yr-outlook-daily.md", "text": "https://wpnews.pro/news/ibkr-claude-6-copy-paste-prompts-portfolio-x-ray-stock-hunt-1-yr-outlook-daily.txt", "jsonld": "https://wpnews.pro/news/ibkr-claude-6-copy-paste-prompts-portfolio-x-ray-stock-hunt-1-yr-outlook-daily.jsonld"}}