Stock market data for Claude.

Get API key
Claude Code ~/research

Find tech stocks with a bull flag that is ready to break out.

TickerDB tracks bull flags, so I'll search for tech stocks whose flag has fully formed.

TickerDB GET /v1/search?filters=[{"field":"sector","op":"eq","value":"Technology"},{"field":"pattern_bull_flag_state","op":"eq","value":"mature"}]

5 stocks with pattern_bull_flag_state "mature". No chart reading needed

TickerDB GET /v1/ohlcv/AMD?timeframe=daily&limit=56

56 daily bars, to chart the first one

Found 5. AMD ran +15% in 10 sessions, then moved sideways for 14. Want me to check them again after tomorrow’s close?

2 TickerDB calls · 2 credits

results search · 5 rows

  1. AMD Advanced Micro Devices mature
  2. AVGO Broadcom mature
  3. ANET Arista Networks mature
  4. MU Micron Technology mature
  5. CRWD CrowdStrike mature

AMD Advanced Micro Devices · daily bull flag

Aug 13Nov 2

  • 10,000+ tickers

    US stocks, ETFs and crypto, daily and weekly.

  • Full-market screening

    Filter every stock on any field and any date, in one call.

  • Point in time

    Each date only uses data that was public by then, without lookahead bias.

  • Direct from the SEC

    Built from SEC EDGAR filings: 10‑K, 10‑Q, 8‑K, Form 4, 13F and N‑PORT.

Work 6.2x faster, on 55% fewer tokens.

TickerDB does the computing for you: trends, patterns and valuations for every stock, with their history. So there's no pipeline to build. Your agent just asks for what it wants.

Market data API 14m 51s

For every week since 2019, find the US stocks priced below 85% of their sector's median P/E, with revenue growing more than 10% and a rising operating margin, in a sector that's trending up. Give each one's 13-week return against its sector ETF.

Let me check what the API offers first.

Read(api-docs.md)

I'm downloading quarterly financial statements and daily prices for every stock.

Bash(python fetch_data.py)

3,127 requests · 16.8M rows

Next, trailing P/E, revenue growth and operating margin for every week, using only filings published by then.

Write(fundamentals.py)

Wrote 68 lines

Bash(python fundamentals.py)

Done

Now each sector's median P/E, and its trend from every stock's weekly trend.

Write(sectors.py)

Wrote 49 lines

Bash(python sectors.py)

Done

Last, the filter, and each stock's 13-week return against its sector ETF.

Write(screen.py)

Wrote 56 lines

Bash(python screen.py)

Done

The stocks are in cheap-in-sector.csv.

3,127
requests
173
lines of Python
628K
tokens
TickerDB 2m 10s

For every week since 2019, find the US stocks priced below 85% of their sector's median P/E, with revenue growing more than 10% and a rising operating margin, in a sector that's trending up. Give each one's 13-week return against its sector ETF.

Let me check what TickerDB has on valuation and sectors.

Read(tickerdb-docs.md)

I'm pulling every stock's weekly P/E, sector, revenue growth, operating margin and sector trend.

TickerDB query_data(every stock, weekly since 2019: P/E, sector, growth, margin, sector trend)

45 requests · 2.2M rows

I'll compute the sector medians, filter, and add returns against the sector ETF.

Write(screen.py)

Wrote 76 lines

Bash(python screen.py)

Done

The stocks are in cheap-in-sector.csv.

45
requests
76
lines of Python
240K
tokens
Played at 40x speed

Medians of three runs across the five questions in our benchmarks, against an API with bulk endpoints. See benchmarks

Every financial dataset, optimized for Claude.

We turn raw market data into answers Claude can read directly, so it reasons better and uses far fewer tokens.

  • Trend, momentum, volatility and chart patterns, daily and weekly.

    Read docs
  • Valuation, growth, margins and cash flow, from SEC filings.

    Read docs
  • What Wall Street expects, and which way it is moving.

    Read docs
  • Every Form 4 trade, by company or by person.

    Read docs
  • What each fund reports holding, and which indexes a stock is in.

    Read docs
  • How the whole market is doing, and the economy behind it.

    Read docs

AMD

OHLC169.87 170.59 169.45 170.34

TrendUptrend

StageStage 2 growth

40-week MA+16.4%Extended above

RSI54.2Neutral

Volume0.7×Low

VolatilityNormal

Bull flagMature

tickerdb · 1 call

GET /v1/summary/AMD?timeframe=weekly

{
  "ticker": "AMD",
  "timeframe": "weekly",
  "ohlcv": {
    "open": 169.87,
    "high": 170.59,
    "low": 169.45,
    "close": 170.34,
    "volume": 223300000
  },
  "trend": {
    "direction": "uptrend",
    "stage": "stage_2_growth",
    "distance_from_ma_zone": { "ma_40": "extended_above" },
    "distance_from_ma_pct": { "ma_40": 16.4 }
  },
  "momentum": { "rsi": 54.2, "rsi_zone": "neutral" },
  "volume": { "ratio": 0.7, "ratio_zone": "low" },
  "volatility": { "regime": "normal" },
  "patterns": { "bull_flag_state": "mature" }
}

Build trading models with one prompt.

Claude Code ~/models/pelosi-oversold

Build me a trading model that follows Nancy Pelosi's trades, but only buys when RSI is oversold.

I'll get her trades and the RSI readings from TickerDB, then backtest it from 2019.

TickerDB GET /v1/insiders?q=nancy pelosi&source=congress

slug nancy-pelosi · Member of Congress

TickerDB GET /v1/insiders/trades?insider=nancy-pelosi&open_market_only=true

Her trades, in the order they became public

TickerDB GET /v1/summary/{ticker}?field=momentum_rsi_zone&band=oversold

momentum_rsi_zone: "oversold" on each date it happened. No RSI math needed

Write(model.py)

Buys the session after she discloses a buy, if the stock is oversold

Bash(python backtest.py --start 2019-01-01 --cash 50000)

Backtest finished

Done. +667% over 41 trades. Want me to run it every day, after the market closes?

backtest model.py $383,391+666.8%

2019 model S&P 500 today

output backtest.py

  1. 2019 +52.4%
  2. 2020 +48.1%
  3. 2021 +39.6%
  4. 2022 -8.2%
  5. 2023 +44.9%
  6. 2024 +37.3%
  7. 2025 +21.8%
  8. 2026 +9.4%
return
+666.8%
win rate
61%
trades
41
max drawdown
-11.0%
  1. 01Describe your strategy

    In plain English, like buy when there's a bull flag. Your agent asks TickerDB which stocks have one.

  2. 02Backtest it

    Every trade only uses point-in-time data, keeping your backtests honest.

  3. 03Run it every day

    After each market close, your agent tells you what the model would buy.

Integrate into Claude in minutes.

Add TickerDB as an MCP connector, and Claude can answer questions about any stock, your portfolio or the whole market.

Claude

Here's my portfolio: AAPL, NVDA, TSLA, COST. Anything I should worry about?

TickerDB query · 4 tickers

Nothing alarming, but three are worth a look:

  • TSLA: insiders have sold more over the last 90 days than they usually do, and the stock just dropped below its 50-day average.
  • NVDA: still in an uptrend, but stretched well above its averages after a long run.
  • COST: the business is healthy, but it's priced at a steep premium to the rest of its sector.

AAPL looks steady: in an uptrend, with analysts raising their estimates and no unusual insider selling.

Want me to check them again every week?

Run our open-source Bitcoin model.

Frequently asked questions

See full FAQ

What is TickerDB?

Market data for AI agents. Instead of just raw prices, your agent gets computed data it can use: a stock is oversold, in a strong uptrend or forming a bull flag, with the numbers behind each one.

It covers 10,000+ US stocks, ETFs and crypto pairs, from technicals to SEC filings, so Claude, ChatGPT or your own agent can research, screen and build trading models without setting up a data pipeline.

View page
How do I connect Claude?

Add TickerDB as a connector in Claude, ChatGPT or Cursor with https://mcp.tickerdb.com/mcp, and sign in. Claude can use it from the next message.

Building your own agent? Call the API with an API key. See connecting Claude and the API docs.

View page
What data do you have?

Technicals, prices, fundamentals from SEC filings, analyst estimates, insider and Congress trades, fund holdings and index membership, the market as a whole, and the US economy. Stocks get all of it; crypto gets prices and technicals.

Every field can be searched across the whole market. The docs list them all.

View page
How far back does the data go?

To 2019 on Pro and Commercial, which is 8 years of history. Plus covers the last 3 years, and Free the last 30 days. Every plan gets daily and weekly data.

View page
How often is the data updated?

At the end of each trading day, with no live data during the day. Daily data: first numbers for stocks and ETFs from about 4:15 PM New York time, and final numbers at 04:00 UTC, around midnight New York time. Crypto updates every day at about 04:10 UTC, including weekends.

Weekly data suits models that run once a week. Each week ends on Sunday, and its data is published on Monday at about 04:45 UTC. See Status for the full notes.

View page
Can I use TickerDB for backtesting?

Yes. Each date only uses data that was public by then. Company results are dated by when their SEC filing came out, economic figures are shown as first published, and companies that were later delisted stay in the history.

That keeps backtests free of lookahead and survivorship bias. See data quality for how it works.

View page
Does TickerDB trade for me?

No. Claude runs the model and tells you what it would buy or sell. You decide what to trade, in your own brokerage account.

View page
How much does it cost?

It is free to start, with 250 credits a month and the last 30 days of data, enough to run a model on a few stocks or a weekly scan of the whole market. Paid plans are $20, $100 and $1,000 a month, with more credits and more history. Each plan's monthly credits match its price: $1 buys 10,000 credits.

See pricing for what each plan includes.

View page

Give Claude the market.

Get API key