Blog

Candle diff snapshots: what changed between two candles, or two dates

TickerDB takes a daily and a weekly snapshot of every ticker. Diff compares any two of them, for up to 50 tickers at once, and shows only what changed.

TickerDB provides market data for AI agents. For every ticker, we take a snapshot at each daily candle and each weekly candle. A snapshot holds the ticker's bands: plain labels like oversold, uptrend or strong_distribution that describe its momentum, trend, volume and fundamentals.

We keep every snapshot, so any two can be compared. Diff does that. Give it up to 50 tickers and it returns only the bands that changed between the two snapshots, each with its value before and its value now. An agent checking a watchlist reads a few lines instead of 50 full snapshots.

With no dates, Diff compares the newest snapshot with the one before it. With dates, it compares the snapshots on any two dates.

RequestComparesGood for
/v1/diff?tickers=NVDAThe newest daily snapshot with the one beforeThe morning check
&timeframe=weeklyThe newest weekly snapshot with the one beforeThe slower picture
&start=2026-10-30The snapshot on that date with the newest oneWhat changed since you bought, or since you last looked
&start=…&end=…The snapshots on any two datesBefore and after an event, or a year apart

The last two candles

Nvidia fell 14% on Friday, November 20. With no dates, Diff compares Friday's snapshot with Thursday's. Six fields changed.

NVDA daily: up down compared
Nov 19 → Nov 20
Oct 26 compared
GET /v1/diff?tickers=NVDA
6 fields changed

NVDA's daily snapshot for Nov 20 against Nov 19, and the six fields that changed.

Each change gives the field, its value before and its value now. A band also says how settled its new value is:

curl
curl "https://api.tickerdb.com/v1/diff?tickers=NVDA" \
  -H "Authorization: Bearer YOUR_API_KEY"
Response
{
  "timeframe": "daily",
  "run_date": "2026-11-20",
  "changes": {
    "NVDA": [
      {
        "field": "volume_ratio_zone",
        "from": "above_average",
        "to": "high",
        "stability": "volatile",
        "periods_in_current_state": 1,
        "flips_recent_count": 14,
        "flips_lookback": "30d"
      },
      {
        "field": "fundamentals_pe_zone",
        "from": "moderate",
        "to": "low",
        "stability": "fresh",
        "periods_in_current_state": 1,
        "flips_recent_count": 2,
        "flips_lookback": "30d"
      }
    ]
  },
  "ticker_context": { "NVDA": { "last_changed_date": "2026-11-20" } },
  "tickers_checked": 1,
  "tickers_changed": 1
}

Two of the six changes, as the API returns them.

volume_ratio_zone changed 14 times in the last 30 days, so it's marked volatile. It changes often, and one more change says little. fundamentals_pe_zone changed twice, so its move to low is marked fresh. That one is new and worth a look. An agent can use these markers to decide which changes to mention.

A whole watchlist in one request

The same request takes up to 50 tickers and still costs 1 credit. Here are 23 large stocks and ETFs on the same Friday:

RSI zone moved to oversold fields changed
Nov 19 → Nov 20
GET /v1/diff?tickers=AAPL,AMD,AMZN,…
23 tickers, 1 request, 1 credit
  • AVGO11
  • INTC11
  • WMT10
  • AMD9
  • META9
  • AAPL8
  • COST8
  • TSLA8
  • QQQ7
  • UNH7
  • AMZN6
  • GOOGL6
  • JPM6
  • NVDA6
  • SMCI6
  • PLTR5
  • SPY5
  • XOM5
  • NFLX4
  • COIN3
  • LLY3
  • MSTR3
  • MSFT2

One request on Friday, Nov 20: the number of fields that changed for each ticker. Violet marks the seven whose RSI zone moved to oversold.

Seven of the 23 moved to oversold on momentum_rsi_zone, SPY and QQQ among them. Microsoft had only two changes. A ticker with no changes isn't in changes at all, and ticker_context still says when it last changed.


Daily or weekly candles

Every ticker has two sets of snapshots, daily and weekly. Add timeframe=weekly and Diff compares the newest weekly snapshot with the one before. A daily change can be one noisy day. A weekly change takes a week of trading to show.

BTCUSD: up down compared
Sunday afternoon, Nov 22
GET /v1/diff?tickers=BTCUSD
daily: Nov 21 → Nov 22
2 fields changed
GET /v1/diff?tickers=BTCUSD&timeframe=weekly
weekly: week to Nov 8 → week to Nov 15
8 fields changed

Bitcoin on Sunday afternoon, Nov 22. Left: the daily diff. Right: the weekly diff. Sunday's daily candle was still open.

Bitcoin's daily diff had two small changes against Saturday. The weekly diff, over the last two finished weeks, had eight. The biggest one: trend_direction went from uptrend to downtrend.


Wider date comparisons

Add start, and optionally end, to compare the snapshots on any two dates. Diff uses each ticker's last snapshot on or before each date, so a weekend or holiday uses the session before. Without end, it compares start with the newest snapshot.

Here's the S&P 500 ETF from October 30 to November 20:

SPY close start and end snapshots
Oct 30, 2026 → Nov 20, 2026
GET /v1/diff?tickers=SPY&start=2026-10-30&end=2026-11-20
$772$690
start Oct 30end Nov 20
oversoldneutral_lowneutral
listedtransitions: 6neutral → oversold
strong_downtrenddowntrend
listedtransitions: 1downtrend → strong_downtrend
expanding_negativecontracting_negative
not listedchanged 4 timesback to expanding_negative

SPY, Oct 30 to Nov 20. Each line under the price is one band's value, day by day.

A field is listed when its value differs between the two snapshots. transitions counts how many times it changed in between:

curl
curl "https://api.tickerdb.com/v1/diff?tickers=SPY&start=2026-10-30&end=2026-11-20" \
  -H "Authorization: Bearer YOUR_API_KEY"
Response
{
  "timeframe": "daily",
  "start": "2026-10-30",
  "end": "2026-11-20",
  "changes": {
    "SPY": [
      {
        "field": "momentum_rsi_zone",
        "from": "neutral",
        "to": "oversold",
        "transitions": 6,
        "stability": "volatile",
        "periods_in_current_state": 1,
        "flips_recent_count": 6,
        "flips_lookback": "30d"
      },
      {
        "field": "trend_direction",
        "from": "downtrend",
        "to": "strong_downtrend",
        "transitions": 1,
        "stability": "volatile",
        "periods_in_current_state": 3,
        "flips_recent_count": 6,
        "flips_lookback": "30d"
      }
    ]
  },
  "ticker_context": {
    "SPY": {
      "start_date": "2026-10-30",
      "end_date": "2026-11-20",
      "last_changed_date": "2026-11-20"
    }
  }
}

Two of the 12 fields listed for SPY.

momentum_macd_state changed four times in those three weeks and ended where it started, so it isn't listed. Diff answers what's different now. It doesn't list what happened in between. For every date a band changed, use Summary's events.

A year apart

The wider the dates, the more fields end up back where they started. Here's Bitcoin on November 22, 2025 and on November 22, 2026:

BTCUSD close start and end snapshots
Nov 22, 2025 → Nov 22, 2026
GET /v1/diff?tickers=BTCUSD&start=2025-11-22&end=2026-11-22
$96,955$58,524
start Nov 22, 2025end Nov 22, 2026
shallow_downflatshallow_up
listedtransitions: 9flat → shallow_down
strong_downtrenddowntrenduptrendstrong_uptrend
not listedchanged 58 timesback to strong_downtrend
deep_oversolddeep_overbought
not listedchanged 74 timesback to oversold

Bitcoin a year apart. 5 fields differ, and 18 changed but came back.

Both snapshots show a strong downtrend with RSI oversold, though trend_direction changed 58 times in between.

Five fields differ, and transitions tells them apart. Three are fast fields that changed 141 to 296 times over the year, so where they sit today says little. Two are slow. trend_ma200_slope_zone went from flat to shallow_down in 9 changes, and trend_ma100_slope_zone from shallow_down to flat in 15. Those two are the real change over the year.

More ways to pick the dates:

  • Since you bought. start on the day you bought, no end.
  • Around an event. start the day before an earnings report, end a week after.
  • Since your last check. start on the date your agent last looked. To keep a list on your account and get only what matters since the last check, use Watchlist.
  • Weekly snapshots over a range. Add timeframe=weekly to compare weekly snapshots instead of daily ones.

Credits

The newest comparison costs 1 credit per request, for up to 50 tickers. Between two dates, it costs 1 credit per ticker. How far back you can go depends on your plan: 30 days on Free, 3 years on Plus, and back to 2019 on Pro and Commercial.


Ask your agent

With the TickerDB MCP server, your agent calls Diff itself. Try:

What changed for NVDA, AAPL and MSFT on the last trading day?

Which of SPY, QQQ, IWM and DIA turned oversold this week?

Has Bitcoin's weekly trend changed since last week?

Compare SPY today with October 30. Which bands moved, and how many times?

Small answers keep an agent fast. In our benchmarks, an agent using TickerDB was 6.2x faster and used 55% fewer tokens than with a standard market data API.

The full reference is in the Diff docs.

Give your agent the market.

Get API key