Diff

What changed for your tickers in the newest data, or between two dates

GET https://api.tickerdb.com/v1/diff

Diff tells you which bands moved for your tickers in the newest data, or between any two dates, and from what to what. Check a list of tickers once a day instead of reading every ticker again. To keep the list on your account and get only what matters since your last check, see Watchlist.

curl
curl "https://api.tickerdb.com/v1/diff?tickers=AAPL,BTCUSD,MSFT" \ -H "Authorization: Bearer YOUR_API_KEY"
Response
{ "timeframe": "daily", "run_date": "2026-03-28", "changes": { "AAPL": [ { "field": "momentum_rsi_zone", "from": "neutral", "to": "oversold", "stability": "fresh", "periods_in_current_state": 1, "flips_recent_count": 2, "flips_lookback": "30d" }, { "field": "momentum_divergence_detected", "from": false, "to": true }, { "field": "fundamentals_earnings_proximity_zone", "from": "next_month", "to": "within_days" } ], "BTCUSD": [ { "field": "volatility_squeeze_active", "from": false, "to": true } ] }, "ticker_context": { "AAPL": { "last_changed_date": "2026-03-28" }, "BTCUSD": { "last_changed_date": "2026-03-28" }, "MSFT": { "last_changed_date": "2026-03-24" } }, "tickers_checked": 3, "tickers_changed": 2 }

MSFT had no change, so it's only in ticker_context, which says when it last changed.

Daily compares the newest session with the one before it; weekly compares the newest week with the one before.

Between two dates

Add start, and optionally end, to compare any two dates. Each ticker compares its last row on or before start with its last row on or before end: a weekend or holiday uses the session before, and timeframe=weekly uses week rows. ticker_context gives the dates it used. Without end, it's what changed since start.

curl
curl "https://api.tickerdb.com/v1/diff?tickers=AAPL&start=2026-06-07&end=2026-11-20" \ -H "Authorization: Bearer YOUR_API_KEY"
Response
{ "timeframe": "daily", "start": "2026-06-07", "end": "2026-11-20", "run_date": null, "changes": { "AAPL": [ { "field": "trend_direction", "from": "up", "to": "down", "transitions": 3, "stability": "holding", "periods_in_current_state": 12, "flips_recent_count": 1, "flips_lookback": "30d" }, { "field": "fundamentals_pe_zone", "from": "high", "to": "elevated", "transitions": 1 } ] }, "ticker_context": { "AAPL": { "start_date": "2026-06-05", "end_date": "2026-11-20", "last_changed_date": "2026-11-03" } }, "tickers_checked": 1, "tickers_changed": 1, "unknown_tickers": [], "note": "Each ticker compares its last row on or before start (start_date) with its last row on or before end (end_date); transitions counts the changes in between.", "cost": { "credits": 1 }, "history_start": "2019-01-01", "plan": "Pro" }

A field is listed when its value differs between the two rows. transitions says how many times it changed in between, so a field that changed and came back isn't listed. Your plan's history applies: Free reaches back 30 days, Plus 3 years, Pro and Commercial to 2019. For every date a band changed, use Summary's events for one ticker, or the change markers in Search.

Credits

The newest comparison costs 1 credit per request, for up to 50 tickers. Between two dates, 1 credit per ticker we know, priced like History reading two dates.

Parameters

ParameterDefaultDescription
tickers—Required. Up to 50, comma-separated: AAPL,MSFT,BTCUSD. Not case sensitive
timeframedailydaily or weekly
start—YYYY-MM-DD. Compare this date with end instead of the newest comparison. Not before your plan's history
endtodayYYYY-MM-DD, with start. A date after today means today

Response fields

FieldTypeDescription
changesobjectEach ticker that changed, with a list of its changes. A ticker that didn't change, or that we don't know, isn't in it
ticker_contextobjectEvery ticker you asked for, with last_changed_date: the last date it changed, or null if none is recorded. Between two dates, the last change between the rows compared, plus start_date and end_date: the rows compared (null when the ticker has no row on or before that date)
run_datestringThe date of the newest data. null before the first comparison exists, and between two dates
start, endstringBetween two dates only: the dates you asked for (end defaults to today)
unknown_tickersarrayBetween two dates only: tickers we don't know
costobjectBetween two dates only: credits charged
history_start, planstringBetween two dates only: your plan's first date, and the plan
timeframestringdaily or weekly
tickers_checked, tickers_changedintegerTickers you asked for, and how many changed

Each change

FieldTypeDescription
fieldstringWhat changed, by its field name: the same name Schema, Search and Summary use (see below)
from, toanyThe value before and now (between two dates: on start_date and end_date). null when there was no value
transitionsintegerBetween two dates only: how many times the field changed between the two rows (1 or more)
stabilitystringBands only: how settled the new value is (between two dates, as of end_date), fresh, holding, established or volatile
periods_in_current_stateintegerBands only: how long the band has held the new value, in bars
flips_recent_count, flips_lookbackinteger, stringBands only: how often it changed recently, and over what window ("30d")

Fields it tracks

Each change names its field the way every other endpoint does, so a field from Diff goes straight into a Search filter or a Summary event query. fundamentals_ and analyst_ fields are stocks only.

Errors

Statuserror.typeCauseWhat to do
400invalid_parameterNo tickers, more than 50, an unknown or repeated parameter, a timeframe other than daily or weekly, a date that isn't YYYY-MM-DD, end without start, or start after end.Read the message. Split longer lists into requests of 50.
403tier_restrictedstart before your plan's history, or timeframe=daily on a weekly-only plan.Use a later date, or upgrade.
404ticker_not_foundBetween two dates: none of the tickers is known.Check the symbols; crypto ends in USD, e.g. BTCUSD.

Errors aren't charged. Authentication and rate-limit errors are on Authentication and Errors & Caching.