How much faster is an AI agent using TickerDB?
Claude Code answered the same five research and model-building questions twice: once with a standard market data API and its bulk endpoints, once with TickerDB.
- Time to answer
- 6.2x faster
- Tokens
- 55% fewer
The more complex the question, the bigger the gap
On the simplest question, a market-regime check on Bitcoin and the yield curve, both sides finished in under a minute. On the most complex, a model's feature table for 1,000 stocks, the agent was 13.9x faster with TickerDB and used 65% fewer tokens.
- Market data API
- TickerDB
| Question | Market data API | TickerDB | TickerDB compared |
|---|---|---|---|
| Bitcoin downtrend and an inverted yield curve | 48 s | 43 s | 1.1x better |
| Unusual-volume bull flag breakouts | 1.4 min | 30 s | 2.8x better |
| Insider cluster buys with room to run | 9.1 min | 2.8 min | 3.3x better |
| Cheap and improving within its sector | 15 min | 2.2 min | 6.8x better |
| A model feature table for 1,000 stocks | 22 min | 1.6 min | 13.9x better |
| Question | Market data API | TickerDB | TickerDB compared |
|---|---|---|---|
| Bitcoin downtrend and an inverted yield curve | 245k | 196k | 1.3x better |
| Unusual-volume bull flag breakouts | 278k | 191k | 1.5x better |
| Insider cluster buys with room to run | 510k | 196k | 2.6x better |
| Cheap and improving within its sector | 628k | 240k | 2.6x better |
| A model feature table for 1,000 stocks | 825k | 288k | 2.9x better |
The work behind the answer
With the market data API, the agent downloads the raw data and computes the trends, patterns and valuations itself, in Python. With TickerDB, those are already computed, and the agent asks for them. Across the five questions, it wrote 313 lines of Python instead of 871 and made 198 requests instead of 12,545.
- Market data API
- TickerDB
| Question | Market data API | TickerDB | TickerDB compared |
|---|---|---|---|
| Bitcoin downtrend and an inverted yield curve | 91 | 86 | 1.1x better |
| Unusual-volume bull flag breakouts | 106 | 31 | 3.4x better |
| Insider cluster buys with room to run | 122 | 52 | 2.3x better |
| Cheap and improving within its sector | 173 | 76 | 2.3x better |
| A model feature table for 1,000 stocks | 379 | 68 | 5.6x better |
| Question | Market data API | TickerDB | TickerDB compared |
|---|---|---|---|
| Bitcoin downtrend and an inverted yield curve | 17 | 13 | 1.3x better |
| Unusual-volume bull flag breakouts | 337 | 2 | 169x better |
| Insider cluster buys with room to run | 5,016 | 88 | 57x better |
| Cheap and improving within its sector | 3,127 | 45 | 69x better |
| A model feature table for 1,000 stocks | 4,048 | 50 | 81x better |
How we ran it
- Same agent. Claude Code with Claude Opus 5.5 at medium effort. Each side had its API's MCP server, its REST API and Python.
- Same question. Identical text on both sides, with every term defined.
- Same data underneath. Both APIs served the same prices, statements and filings.1
- Both knew their API. Each side got a quick reference of the same length.
- A head start for the other side. Bulk endpoints that return the whole market in one request, clean split-adjusted data, standard indicators built in and no rate limits.
- Done means answered. A run ends when the agent writes its answer.
- Medians of three runs. Each question ran three times on each side.
The five questions
They range from a quick check on a dozen assets to a feature table for 1,000 stocks.
Bitcoin downtrend and an inverted yield curve
Task
Find the weeks since 2019 when Bitcoin was in a downtrend and the yield curve was inverted. For each sector ETF, compare its average 13-week return in those weeks with all other weeks.
Market data API · 5 steps
- Download daily prices for Bitcoin and the 11 sector ETFs.
- Download 2-year and 10-year Treasury yields.
- Compute Bitcoin's 20-, 50- and 200-week averages and decide its trend every week.
- Mark the weeks when the 10-year yield was below the 2-year (inverted curve).
- Compute each ETF's 13-week return and average it by regime.
TickerDB · 3 steps
- Read Bitcoin's weekly trend.
- Read whether the yield curve was inverted each week.
- Fetch the ETF prices and average their 13-week returns by regime.
Results
| Measure | Market data API | TickerDB |
|---|---|---|
| Time to answer | 48 s | 43 s |
| Tokens | 245k | 196k |
| Python written | 91 lines | 86 lines |
| API requests | 17 | 13 |
Unusual-volume bull flag breakouts
Task
Find every US stock that broke out of a bull flag between October 6 and November 2, 2026, on volume in the top 5% of its own past year, while above its 200-day average. Give each one's distance from that average and the slope of its 50-day average.
Market data API · 5 steps
- Download a year of daily prices and volume for every stock.
- Rank each day's volume against the stock's own past year.
- Write and run a bull-flag pattern detector.
- Work out each stock's 200-day average, its distance from it and the 50-day slope.
- Keep the stocks that pass every condition.
TickerDB · 1 step
- Run one screen: the breakout, the volume and the 200-day average. Distance and slope come back with each row.
Results
| Measure | Market data API | TickerDB |
|---|---|---|
| Time to answer | 1.4 min | 30 s |
| Tokens | 278k | 191k |
| Python written | 106 lines | 31 lines |
| API requests | 337 | 2 |
Insider cluster buys with room to run
Task
Find every week since 2019 when 3 or more insiders started buying a stock on the open market, outside pre-arranged trading plans. For each, give the CEO's net direction and the 13-week return that followed.
Market data API · 5 steps
- Download every insider (Form 4) trade since 2019.
- Keep open-market purchases that weren't under a pre-arranged plan.
- Count distinct buyers per stock in rolling 30-day windows by filing time, and find where clusters start.
- Find each CEO's trades and their net direction.
- Fetch prices and compute 13-week returns.
TickerDB · 3 steps
- Pull each stock's weekly insider-cluster flag and CEO direction.
- Find the weeks where a cluster starts.
- Compute 13-week returns.
Results
| Measure | Market data API | TickerDB |
|---|---|---|
| Time to answer | 9.1 min | 2.8 min |
| Tokens | 510k | 196k |
| Python written | 122 lines | 52 lines |
| API requests | 5,016 | 88 |
Cheap and improving within its sector
Task
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.
Market data API · 5 steps
- Download quarterly financial statements and prices for every stock.
- Build trailing P/E, revenue growth and operating margin for every week, using only filings published by then.
- Compute each sector's median P/E every week.
- Work out every stock's weekly trend, then each sector's most common trend.
- Filter, then compute 13-week returns against the sector ETF.
TickerDB · 3 steps
- Pull the weekly history of P/E, sector, revenue growth, operating margin and sector trend for every stock.
- Compute the sector medians and filter.
- Compute 13-week returns against the sector ETF.
Results
| Measure | Market data API | TickerDB |
|---|---|---|
| Time to answer | 15 min | 2.2 min |
| Tokens | 628k | 240k |
| Python written | 173 lines | 76 lines |
| API requests | 3,127 | 45 |
A model feature table for 1,000 stocks
Task
Build a table with one row per stock per week since 2019 for 1,000 US stocks: market breadth, fear & greed, macro regime, sector trend, valuation percentile, insider state, seven chart-pattern states, moving-average distances and slope, operating margin and revenue growth.
Market data API · 8 steps
- Download prices for every stock plus SPY, IEF and HYG, financial statements, insider trades and macro series.
- Compute market breadth and the fear & greed score every week.
- Work out the macro regime from GDP, unemployment and inflation releases.
- Work out every sector's trend every week.
- Compute each stock's valuation percentile and insider state.
- Write and run seven chart-pattern detectors.
- Compute moving-average distances and slope, operating margin and revenue growth.
- Join everything into one table.
TickerDB · 3 steps
- Pull the weekly history of the per-stock fields for the 1,000 stocks.
- Pull the weekly market readings: breadth, fear & greed and macro regime.
- Join them on the date.
Results
| Measure | Market data API | TickerDB |
|---|---|---|
| Time to answer | 22 min | 1.6 min |
| Tokens | 825k | 288k |
| Python written | 379 lines | 68 lines |
| API requests | 4,048 | 50 |
With one stock per request, the gap grows to 11.4x
Many market data APIs only return one stock per request, so a question about the whole market takes a request for every stock. We ran the same five questions against an API like that.2 Across all five, TickerDB took 7.7 min against 88 min, and used 73% fewer tokens.
| Question | Faster | Fewer tokens |
|---|---|---|
| Bitcoin downtrend and an inverted yield curve | 1.4x | 1.2x |
| Unusual-volume bull flag breakouts | 8.7x | 1.9x |
| Insider cluster buys with room to run | 12.8x | 6.1x |
| Cheap and improving within its sector | 8.2x | 2.1x |
| A model feature table for 1,000 stocks | 18.4x | 6.0x |
Limits
- Effort, not accuracy. Some questions don't have a single right answer. Where a bull flag's channel begins, for example, is a judgment call, so we didn't grade the answers. We measured what it took to reach one: time, tokens, code and requests.
- One agent, one model. We used Claude Opus 5.5 at medium effort. Other models and settings may give different results.
- Five questions. Five is a small set, and any single number could move with different questions. The pattern held at every step: the more complex the question, the bigger the gap.
- Run locally. To keep the comparison even, we ran both APIs next to the data, with no rate limits and no network in between. With a real provider, every request crosses the network and counts against a rate limit. The market data API side made 12,545 requests to TickerDB's 198, so in practice the gap would likely be wider.
Notes
- The market data API was a local copy of a widely used provider's API. It had the same endpoints, parameters and responses, bulk endpoints included. It served the same clean data TickerDB reads. ↩
- The one-stock-per-request API ran the same way as the bulk one: the same agent, the same data underneath and no rate limits. It made 115,407 requests to TickerDB's 198, so with a real provider's rate limits, it would fall even further behind. ↩