Kevin Meneses
โ† Back to articles

I Stopped Asking Claude for Stock Picks. I Built These 5 Workflows Instead.

ClaudeStock AnalysisInvestingPythonEODHDAI
5 AI workflows: Claude connected to five financial analysis tools with EODHD APIs.

I expected Claude to give me five tickers and a table of confident, made-up numbers.

It refused. Five times out of six.

That refusal ended up being the most useful thing I got from it. AI stock picks aren't the hard part. The hard part is checking a pick before you act on it, and that's work a model can't do without data.

If you're:

  • asking ChatGPT or Claude "what should I buy?" and getting either a lecture or a guess,
  • a developer who wants a repeatable way to check an idea before you put money in,
  • or someone wondering whether AI can pick stocks at all,

this is for you.

TL;DR: I sent two stock-pick prompts to Claude three times each, with no tools and no data. In 5 of 6 runs it refused to give numbers. In the one run where it named five stocks (MSFT, GOOGL, BRK.B, V, UNH), only 5 of its 10 checkable figures held up against live data. So I built five workflows on EODHD APIs that check a pick instead of making one: a fact-check, an earnings-risk check, a drawdown and news check, an insider check and a stress test. Every market figure below came out of those scripts, run on 2026-11-23 with prices up to the 2026-11-20 close.

I asked Claude for stock picks six times

The setup was deliberately bare:

  • Model: Claude Opus 4.8 through the Claude Code CLI (v2.1.216), --tools "", so no web search, no MCP and no files.
  • Folder: an empty directory, so there was no project context to lean on.
  • Prompt A (3 runs): "Give me 5 US stocks to buy right now. For each one, give the ticker, the current share price, the trailing P/E ratio, the dividend yield, and the 52-week high. Be specific with numbers."
  • Prompt B (3 runs): "Which 5 US stocks would you buy today for the next 12 months, and why? Include the key numbers that support each pick (price, valuation, growth, dividend)."
  • Date: 2026-11-23.

Claude refused to invent numbers in 5 of 6 runs

Prompt A went 3 for 3 on refusals. Every run said roughly the same thing: no live market access, a knowledge cutoff well before today, and any price it typed would be a guess.

One line from the second run sums it up:

"For something you'd trade on, a fabricated number is worse than no number, so I won't invent them."

Prompt B, the softer one, got two more refusals. The third run gave in, with heavy caveats. It named Microsoft, Alphabet, Berkshire Hathaway, Visa and UnitedHealth, and attached "approximate figures as of my early-2026 cutoff", flagged as stale.

The picks matter less than what Claude said next in every run: pull live numbers before deciding anything. Most runs also offered to help build a screen instead.

So I did that. I kept its five names as test inputs and ran them through five workflows. (For the opposite setup, Claude with live data from the first prompt, see I Asked Claude Where to Invest $10,000.)

The real problem was never the model. It was the missing data layer.

A language model can reason about a business. It can't know today's P/E, last week's insider filings or how hard a stock moved on its last eight earnings reports. Those are data questions.

For this test, the data layer is EODHD APIs: end-of-day prices, fundamentals, the earnings calendar, news with sentiment and insider transactions, all behind one key.

One helper runs everything:

import os
import requests

BASE = "https://eodhd.com/api"
KEY = os.environ["EODHD_API_KEY"]
PICKS = ["MSFT.US", "GOOGL.US", "BRK-B.US", "V.US", "UNH.US"]  # Claude's 5 picks


def get(path, **params):
    r = requests.get(f"{BASE}/{path}", params={"api_token": KEY, "fmt": "json", **params}, timeout=90)
    r.raise_for_status()
    return r.json()

One gotcha: Berkshire's class B share is BRK-B.US on EODHD. BRK.B.US returns a 404.

Which plan you need to reproduce this: the workflows use fundamentals, insider transactions, news and five years of daily prices. The free plan (20 calls a day, 1 year of EOD, no fundamentals) won't cover it. One fundamentals request costs 10 API calls, so the full workflow 1 script uses 55 (5 fundamentals requests plus 5 price requests). You need the All-In-One plan, or the Fundamentals Data Feed plus EOD Historical All-World.

Workflow 1: only 5 of Claude's 10 numbers held up

Question: are the figures behind the pick still true?

I turned Claude's wording into ranges ("low-20s forward P/E" became 20 to 24, "~0.7% yield" became 0.6% to 0.8%) and checked each one against live fundamentals. That interpretation is mine; you could draw the ranges a little wider or narrower.

CLAIMS = {
    "MSFT.US": {"ForwardPE": (30, 35), "RevGrowth": (0.11, 0.15), "Yield": (0.006, 0.008)},
    "GOOGL.US": {"ForwardPE": (20, 23.99), "RevGrowth": (0.10, 0.99), "PaysDividend": True},
    "BRK-B.US": {"PaysDividend": False},
    "V.US": {"ForwardPE": (27, 29.99), "RevGrowth": (0.10, 0.139), "Yield": (0.007, 0.009)},
}

checked = held = 0
for t, claims in CLAIMS.items():
    f = get(f"fundamentals/{t}")
    h, v = f["Highlights"], f["Valuation"]
    actual = {
        "ForwardPE": v.get("ForwardPE"),
        "RevGrowth": h.get("QuarterlyRevenueGrowthYOY"),
        "Yield": h.get("DividendYield") or 0,
        "PaysDividend": bool(h.get("DividendYield")),
    }
    for k, want in claims.items():
        got = actual[k]
        ok = (got == want) if isinstance(want, bool) else (got is not None and want[0] <= got <= want[1])
        checked += 1
        held += ok
        print(f"{t:9} {k:12} claimed {str(want):14} actual {str(got):10} -> {'OK' if ok else 'OFF'}")
print(f"{held} of {checked} checkable claims held")

Output:

MSFT.US   ForwardPE    claimed (30, 35)       actual 24.0385    -> OFF
MSFT.US   RevGrowth    claimed (0.11, 0.15)   actual 0.188      -> OFF
MSFT.US   Yield        claimed (0.006, 0.008) actual 0.0074     -> OK
GOOGL.US  ForwardPE    claimed (20, 23.99)    actual 17.7936    -> OFF
GOOGL.US  RevGrowth    claimed (0.1, 0.99)    actual 0.247      -> OK
GOOGL.US  PaysDividend claimed True           actual True       -> OK
BRK-B.US  PaysDividend claimed False          actual False      -> OK
V.US      ForwardPE    claimed (27, 29.99)    actual 26.738     -> OFF
V.US      RevGrowth    claimed (0.1, 0.139)   actual 0.132      -> OK
V.US      Yield        claimed (0.007, 0.009) actual 0.0069     -> OFF

5 of 10 checkable claims held

The misses have a direction. Claude remembered Microsoft at 30 to 35 times forward earnings. Live data says 24.0. It remembered Alphabet in the low 20s. Live data says 17.8. Both stocks look cheaper today than the model thinks they are.

Three of the five misses are forward P/E, which fits ten months of staleness: valuations moved, the model's memory didn't. The other two are smaller (Microsoft's revenue growth came in above the range, Visa's yield sits just under it). The numbers aren't absurd. They're out of date, and they look exactly like current ones.

UnitedHealth had no figures to check. Claude gave no number for it.

Workflow 2: UnitedHealth lost 22% in one earnings session

Question: how much could one report hurt me?

For each stock, the script takes the last 8 reported quarters, finds the first trading session that could react to each report, and compares that move to an average day over three years.

import datetime as dt
import statistics as st

today = dt.date.today()
for t in PICKS:
    hist = get(f"fundamentals/{t}", filter="Earnings::History")
    px = get(f"eod/{t}", **{"from": (today - dt.timedelta(days=3 * 365)).isoformat()})
    dates = [p["date"] for p in px]
    close = {p["date"]: p["adjusted_close"] for p in px}
    daily = [abs(close[dates[i]] / close[dates[i - 1]] - 1) for i in range(1, len(dates))]
    past = sorted((e for e in hist.values() if e.get("reportDate") and e["reportDate"] <= today.isoformat()
                   and e.get("epsActual") is not None), key=lambda e: e["reportDate"])[-8:]
    moves = []
    for e in past:
        rd = e["reportDate"]
        if rd not in close:  # weekend report (Berkshire): Friday close -> Monday close
            i = next(j for j, x in enumerate(dates) if x > rd)
            moves.append(close[dates[i]] / close[dates[i - 1]] - 1)
        elif e.get("beforeAfterMarket") == "AfterMarket":
            i = dates.index(rd)
            moves.append(close[dates[i + 1]] / close[rd] - 1)
        else:
            i = dates.index(rd)
            moves.append(close[rd] / close[dates[i - 1]] - 1)
    avg_e, avg_d = st.mean(map(abs, moves)), st.mean(daily)
    print(f"{t:9} avg|earnings move| {avg_e:.2%}  avg|day| {avg_d:.2%}  x{avg_e / avg_d:.1f}  worst {min(moves):+.2%}")
TickerAvg move on earningsAvg normal dayRatioWorst earnings reaction
MSFT6.28%1.14%5.5xโˆ’9.99%
GOOGL5.35%1.41%3.8xโˆ’12.64%
BRK-B2.43%0.73%3.3xโˆ’5.12%
V1.93%0.91%2.1xโˆ’3.00%
UNH8.04%1.47%5.5xโˆ’22.38%

8 reports per stock, January 2025 to November 2026. Adjusted closes as of 2026-11-20; they shift slightly after each dividend.

Claude called UnitedHealth the defensive pick. It had the two worst single-day reactions in the whole set: โˆ’22.38% after the April 2025 report and โˆ’19.61% after the January 2026 one.

Two of UNH's eight reports wiped out about a fifth of its value in one session.

One limit showed up here. I also asked the earnings calendar for each stock's next report date over the following 120 days. On 2026-11-23 it returned no upcoming date for any of the five. The January reports weren't listed yet. In a daily job this step would simply start flagging them once they appear.

Workflow 3: 2 of 5 picks were more than 15% below their 52-week high

Question: is something already going wrong?

The script checks each stock's distance from its 52-week high. Only the ones more than 15% below get the expensive follow-up: 30 days of news plus daily sentiment.

for t in PICKS:
    px = get(f"eod/{t}", **{"from": (today - dt.timedelta(days=365)).isoformat()})
    c = [p["adjusted_close"] for p in px]
    dd = c[-1] / max(c) - 1
    print(f"{t:9} 1y {c[-1] / c[0] - 1:+.1%}  from 52w high {dd:+.1%}")
    if dd < -0.15:
        frm = (today - dt.timedelta(days=30)).isoformat()
        news = get("news", s=t, limit=50, **{"from": frm, "to": today.isoformat()})
        sent = get("sentiments", s=t, **{"from": frm, "to": today.isoformat()})
        days = next(iter(sent.values()), [])
        print(f"  {len(news)} articles, mean sentiment {sum(d['normalized'] for d in days) / len(days):.2f}")
        for n in news[:10]:
            print("  ", n["date"][:10], n["title"])
Ticker1-year returnFrom 52-week high
MSFT+3.1%โˆ’12.7%
GOOGLโˆ’16.5%โˆ’34.0%
BRK-B+12.2%โˆ’3.9%
V+23.0%โˆ’7.8%
UNH+9.4%โˆ’21.6%

Adjusted closes, 2026-11-20.

Alphabet and UnitedHealth were flagged. Two findings from the news step:

Sentiment stayed positive while Alphabet was falling. The mean daily sentiment score over the last 31 days was 0.68, while the stock sat 34% below its high and 23.7% down over three months. A sentiment number on its own tells you nothing about the drawdown.

The headlines were noisy. By my own reading, 3 of the 10 most recent Alphabet headlines were about Alphabet itself (a Waymo service pause, a geothermal power deal, and "Alphabet (GOOGL) Stock Gets Fair Value Trim As Analysts Weigh AI Spending And Monetization"). The rest included a Delta flight delay and two pieces on Warren Buffett's portfolio. For UnitedHealth, 5 of 10 were about the company, mostly a TD Cowen upgrade on 2026-11-20.

(I took one drop like this all the way down in A Stock Fell 20%. I Used Claude to Investigate Why.)

So this workflow points you at two stocks and maybe eight headlines. Reading those is still your job.

Workflow 4: 4 of 5 companies had zero open-market insider buys

Question: is anyone inside the company buying with their own money?

import collections

frm = (today - dt.timedelta(days=180)).isoformat()
for t in PICKS:
    tx = get("insider-transactions", code=t, limit=1000, **{"from": frm, "to": today.isoformat()})
    agg = collections.defaultdict(lambda: [0, 0.0])
    for x in tx:
        agg[x.get("transactionCode")][0] += 1
        agg[x.get("transactionCode")][1] += (x.get("transactionAmount") or 0) * (x.get("transactionPrice") or 0)
    print(t, "buys", agg["P"], "sales", agg["S"])
TickerForm 4 rows (180 days)Open-market buysSales (value)
MSFT25025 ($92.0M)
GOOGL29029 ($4.1M)
BRK-B65 ($500K)1 ($20.0M)
V20020 ($81.2M)
UNH202 ($0.7M)

The only buys came from one Berkshire filer, five small purchases in August and November 2026 worth about $500,000 in total.

Insider selling is weak evidence. Executives sell for taxes, diversification and pre-planned schedules. Open-market buying is the rarer signal, and there wasn't much of it here. This workflow would have mattered more if one of these names had a cluster of buys. None did.

Workflow 5: Berkshire and UnitedHealth held up on 16 and 17 of the market's 20 worst days

Question: does the thesis survive a bad market?

Claude gave a reason for two of its picks: Berkshire as "downside ballast", UnitedHealth for "defensive demand". Those are testable claims.

The script finds SPY's 20 worst days over five years and checks how each pick did on those days. It also measures the 2022 drawdown, from SPY's 2022 high on 2022-01-03 to its 2022 low on 2022-10-12 (both checked on adjusted closes).

frm = (today - dt.timedelta(days=5 * 365)).isoformat()
series = lambda t: {p["date"]: p["adjusted_close"] for p in get(f"eod/{t}", **{"from": frm})}

spy = series("SPY.US")
d = sorted(spy)
spy_r = {d[i]: spy[d[i]] / spy[d[i - 1]] - 1 for i in range(1, len(d))}
worst = sorted(spy_r, key=spy_r.get)[:20]

for t in PICKS:
    s = series(t)
    r = {x: s[x] / s[p] - 1 for p, x in zip(d, d[1:]) if x in s and p in s}
    better = sum(r[x] > spy_r[x] for x in worst)
    dd22 = s["2022-10-12"] / s["2022-01-03"] - 1
    print(f"{t:9} worst-20 avg {st.mean(r[x] for x in worst):+.2%}  better than SPY {better}/20  2022 {dd22:+.1%}")
TickerAvg on SPY's 20 worst daysBetter than SPYJan 3 to Oct 12, 2022Correlation with SPY
SPYโˆ’3.64%n/aโˆ’24.5%1.00
MSFTโˆ’3.71%7 / 20โˆ’32.1%0.69
GOOGLโˆ’3.80%8 / 20โˆ’32.7%0.66
BRK-Bโˆ’2.49%16 / 20โˆ’12.2%0.57
Vโˆ’3.37%11 / 20โˆ’19.1%0.60
UNHโˆ’1.57%17 / 20+0.5%0.21

1,253 sessions, 2021-11-24 to 2026-11-20. Adjusted closes.

Here Claude's reasoning held up. Berkshire beat SPY on 16 of the 20 worst days and lost half as much in 2022. UnitedHealth beat it on 17 of 20 and finished the 2022 window up 0.5%.

Put workflows 2 and 5 together and you get a more useful picture than either one alone. UnitedHealth protected you when the market crashed, and then hurt you on its own earnings days. The defensive pick still had the biggest single-day losses in the group.

If you hold more than a handful of names, correlation is where hidden risk builds up. I covered that in I Gave Claude My Portfolio and Asked It to Find the Hidden Risks.

What survived the five workflows

PickW1 factsW2 earnings riskW3 drawdownW4 insidersW5 stress
MSFT1 of 3 claims heldhigh (5.5x)โˆ’12.7%sales onlyweaker than SPY
GOOGL2 of 3 heldmedium (3.8x)flagged, โˆ’34.0%sales onlyweaker than SPY
BRK-B1 of 1 heldlow (3.3x, 2.43% avg)โˆ’3.9%small buysheld up (16/20)
V1 of 3 heldlowest (2.1x)โˆ’7.8%sales onlymixed (11/20)
UNHnothing to checkhighest avg move (8.04%, โˆ’22.38% worst)flagged, โˆ’21.6%sales onlyheld up (17/20)

None of this says "buy" or "don't buy". It says what you'd need to believe to own each one. That's the step a chat answer skips.

Not financial advice. The five tickers are Claude's answer, used here as test inputs, not recommendations.

If you want to run the same checks on your own watchlist, the data comes from EODHD APIs. Use the code KEVIN10 at checkout for 10% off.

Doing it without code: the same workflows as Claude prompts

The model in my six runs reasoned fine. It just had nothing to reason about. Give it data and the same model runs these checks itself.

Connect the EODHD APIs MCP server to Claude, then use one prompt per workflow:

"For MSFT, GOOGL, BRK-B, V and UNH, pull current fundamentals and give me forward P/E, quarterly revenue growth and dividend yield. Cite the field you used for each number."

"For each of those tickers, list the last 8 earnings report dates and the price move on the first session after each one. Compare it with the average daily move over 3 years."

"Which of them are more than 15% below their 52-week high? For those only, summarise the last 30 days of news and separate company-specific headlines from noise."

"Show open-market insider purchases (code P) for each ticker over the last 180 days. Ignore sales."

"Find SPY's 20 worst days in the last 5 years and show how each ticker did on those days."

The scripts above are the ones I'd schedule. The prompts are faster for a one-off check. Either way, the numbers come from a live query and not from the model's memory.

Where this breaks and what I'd trust

  • One model, six runs, one day. Claude refused in 5 of 6 runs on 2026-11-23 with Opus 4.8. Another model, another day or a pushier prompt could produce a confident table of invented numbers. That's the case these workflows exist for.
  • The ranges in workflow 1 are my reading of Claude's words. "Low-20s" as 20 to 24 is a judgment call, and two of the misses (Visa's forward P/E and yield) sit right at the edge of my ranges.
  • Eight earnings reports is a small sample. UNH's two big drops dominate its average. Treat the ratio as "how bad can it get", not as a forecast.
  • The news step is a filter, not an analyst. 50 articles is the limit I set, and the ticker filter pulls in market roundups. You still have to read.
  • Insider data shows what was filed, not why. Pre-planned sales look identical to discretionary ones in a raw count.
  • Adjusted closes change after each dividend. All price figures are as of 2026-11-20. Alphabet and UnitedHealth both go ex-dividend on 2026-12-07, so a rerun after that date will show slightly different numbers.

What I'd trust: the direction of each finding, the counts, and the habit of checking a pick five ways before acting on it. What I wouldn't: any single number in isolation, including mine.

FAQ

Can AI pick stocks?

In my test, Claude declined to in 5 of 6 attempts. It said it had no live data and that invented figures would be dangerous. When it did name stocks, half of its checkable numbers missed against live data. AI is more useful for checking picks against real data than for making them.

Is Claude good for stock analysis?

It's good at reasoning once it has data. Without tools, it worked from figures about ten months old and said so. Connected to a data source such as the EODHD APIs MCP server, it can pull fundamentals, prices, news and insider filings and cite where each number came from.

Why does Claude refuse to give stock picks?

In all five refusals it gave the same two reasons: it had no live market data, and "buy right now" depends on the reader's goals and risk tolerance. It never refused to explain metrics or help build a screen.

Are ChatGPT or Claude stock picks reliable?

Not as raw chat answers. In the one run where Claude gave picks, 5 of 10 checkable figures missed against live data. Three of the misses were forward P/E ratios, which is consistent with valuations moving after its training cutoff. Check every number against a data source before acting on it.

What data do I need to fact-check an AI stock pick?

Current fundamentals (P/E, growth, yield), daily prices for drawdowns and stress tests, earnings history, news and insider transactions. All five workflows here run on one EODHD key, on the All-In-One plan or the Fundamentals Data Feed plus EOD Historical All-World.

Key takeaways

  • Claude refused to invent stock numbers in 5 of 6 runs. When it did name picks, 5 of its 10 checkable figures missed against live data.
  • A pick is a hypothesis. Five checks (facts, earnings risk, drawdown, insiders, stress) turn it into something you can actually judge.
  • The "defensive" pick held up on 17 of the market's 20 worst days and still had a โˆ’22.38% earnings day. One check alone would have missed half of that.

I stopped asking Claude what to buy.

I ask it to check what I'm about to buy, and I give it the data to do that.

๐Ÿ‘‰ Get started with EODHD APIs here. Use the code KEVIN10 at checkout for 10% off.


If you're a software or API company looking to explain your product through high-quality educational content (not marketing fluff), feel free to connect with me on LinkedIn.