Claude Code stock analysis: how we run it on free data

Updated on

Educational only, not investment advice.

This is how we do Claude Code stock analysis on bests.one: the workflow, the free data, the checking pass, and where it went wrong. It is a method, not a stock pick. Everything below comes from the run records in our own research notes, and none of it says whether any stock is worth buying.

What we actually ran

Between 2026-10-20 and 2026-10-21, Claude Code produced five research notes for bests.one. Each note opens with a "How this report was made" box, and the table below copies only what those boxes and the notes' source lists say. Where a note did not record something, the cell says so.

NoteReport typeRun dateTimeCompute costDataSecond-pass check
Manhattan Associates compsComparable companies2026-10-20About 2 minutesAbout $0.44SEC EDGAR filings and XBRL, FRED, unofficial Yahoo Finance prices. No web-sourced figures.17 figures compared with SEC filings and FRED
Microsoft DCF modelDCF model2026-10-20About 4 minutesAbout $0.82SEC EDGAR, FRED, unofficial Yahoo Finance prices, plus web figures tagged [WEB]17 of 17 figures, plus all 6 [WEB] figures against the original pages
NVIDIA Q2 FY2027 earnings reviewEarnings review2026-10-20About 2 minutesAbout $0.54SEC EDGAR, unofficial Yahoo Finance prices, plus web figures tagged [WEB]24 of 24 figures, plus 2 [WEB] figures against the original pages
SpaceX Q3 2026 earnings reviewEarnings review2026-10-21Not recordedNot recordedThe 8-K earnings release (EX-99.1) filed 2026-10-20, unofficial Yahoo Finance prices, and news coverage tagged [WEB]Not recorded
Best S&P 500 stock each year backtestBacktest2026-10-21Not recordedNot recordedThe open fja05680/sp500 membership dataset and the unofficial Yahoo Finance chart endpoint, on a Mac mini where Claude Code wrote and ran its own PythonEach yearly winner checked against published year-end reports

The cost column is what each run reported for its own compute, not a price list. For current Claude prices, see Anthropic's pricing page.

Three things stand out from the table. First, the runs were short: the three that recorded time took about 2 to 4 minutes. Second, most of the effort sits in checking, not writing. The DCF note checked 17 figures from filings and 6 web figures separately, and the earnings review checked 24. Third, the two notes that relied most on outside material, the SpaceX review and the backtest, did not record time or cost, so we have no comparison for them.

Every published note was also reviewed by a person at bests.one before it went live. The checking process is described on How we test.

The setup

The stack has three parts.

Claude Code. Anthropic's docs describe it as an agentic coding tool that reads your codebase, edits files and runs commands, available in the terminal, IDE, desktop app and browser. Install it from the official Claude Code docs; we don't repeat the steps here because they change.

Anthropic's open-source finance skills. The first three notes say they used "Anthropic's open-source finance skills, adapted by bests.one." These come from the anthropics/financial-services repository, released under the Apache 2.0 license. Its core financial-analysis plugin covers comps, DCF, LBO and three-statement models, and the equity-research plugin adds earnings notes and model updates. Anthropic's install tutorial says the plugins work in both Claude and Claude Code. The repository itself says nothing in it is investment advice and that outputs are drafts for review by a qualified professional. Our adapted versions are not published on this page.

A free-data tool server. The notes call it us-free-finance, an MCP server (a tool interface the agent can call) that reads SEC EDGAR XBRL facts and filings, FRED series and unofficial Yahoo Finance prices. The comps note shows it in use, for example a tool that pulls peer candidates from a company's proxy statement and 10-K. If you want to build the same kind of tool, the endpoints it relies on are public and documented in our SEC EDGAR API guide.

The backtest note doesn't mention the finance skills or the tool server. It says Claude Code wrote and ran its own Python on a Mac mini against two free datasets.

Step by step: from ticker to checked note

This is the order the notes follow. Use TICKER as a placeholder until the whole loop works.

1. Pick a report type and a ticker

Decide on the output before you start. A comps table needs a peer set, a DCF needs a projection period and terminal assumptions, an earnings review needs the release and the prior guidance, and a backtest needs a membership history. Ask for one report type per run.

2. Pull the data from free primary sources

Point the agent at filings first. Our notes use SEC EDGAR filings and XBRL for every historical figure, FRED for rates and inflation, and Yahoo Finance for prices, labeled as unofficial. The SEC side is covered in the EDGAR guide linked above, so it isn't repeated here.

3. Let the agent write and run the code

Have Claude Code compute the tables in code it runs, not in prose. The DCF note, for example, keeps its full scenario rows in a CSV file, and the backtest publishes its raw output as a CSV, so the numbers can be audited.

4. Tag every figure by source

Our notes separate figures into SEC-verified (from filings or XBRL) and [WEB] (analyst consensus, call commentary, news), with the provider, date and link for each web figure. The comps note used no web figures at all. When a web figure came only from a search snippet, the NVIDIA note labeled it "not verified, not relied on."

5. Run a second checking pass

A separate AI pass compares a list of figures in the draft against the original filings and FRED pages. The notes record the count, such as 17 of 17 or 24 of 24, and say that everything matched "except where noted." Web figures are checked against the pages they cite.

6. Review it yourself before publishing

A person reads the draft, the data gaps and the known limitations before publishing. Our notes keep their limitations sections in the published version instead of trimming them.

Where it went wrong

The notes record their own mistakes and gaps. A few examples:

What it can't do

FAQ

Can Claude Code analyze stocks?

It can draft stock research such as comparable companies tables, DCF models and earnings reviews if you give it data tools. In our runs it wrote and ran its own code on free SEC, FRED and Yahoo Finance data. A separate checking pass and a human review were still needed before anything was published.

What data does it need?

At minimum, company filings and financial facts (we use SEC EDGAR filings and XBRL), macro series such as FRED, and a price source. Free sources do not include consensus estimates or forward data, so those either come from the web, tagged and checked, or are left out.

Is this investment advice?

No. This page and the research notes it links to are for education only. They describe a method and do not recommend buying, selling or holding any security.

Related on bests.one

Sources: Claude Code overview (Anthropic docs), anthropics/financial-services on GitHub, Install financial services plugins for Claude (Claude Academy), EDGAR Application Programming Interfaces (APIs), fja05680/sp500 on GitHub. Checked on 2026-10-27.

Follow the tests