Diff
What changed for your tickers in the newest data, or between two dates
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.
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.
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
| Parameter | Default | Description |
|---|---|---|
tickers | — | Required. Up to 50, comma-separated: AAPL,MSFT,BTCUSD. Not case sensitive |
timeframe | daily | daily or weekly |
start | — | YYYY-MM-DD. Compare this date with end instead of the newest comparison. Not before your plan's history |
end | today | YYYY-MM-DD, with start. A date after today means today |
Response fields
| Field | Type | Description |
|---|---|---|
changes | object | Each 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_context | object | Every 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_date | string | The date of the newest data. null before the first comparison exists, and between two dates |
start, end | string | Between two dates only: the dates you asked for (end defaults to today) |
unknown_tickers | array | Between two dates only: tickers we don't know |
cost | object | Between two dates only: credits charged |
history_start, plan | string | Between two dates only: your plan's first date, and the plan |
timeframe | string | daily or weekly |
tickers_checked, tickers_changed | integer | Tickers you asked for, and how many changed |
Each change
| Field | Type | Description |
|---|---|---|
field | string | What changed, by its field name: the same name Schema, Search and Summary use (see below) |
from, to | any | The value before and now (between two dates: on start_date and end_date). null when there was no value |
transitions | integer | Between two dates only: how many times the field changed between the two rows (1 or more) |
stability | string | Bands only: how settled the new value is (between two dates, as of end_date), fresh, holding, established or volatile |
periods_in_current_state | integer | Bands only: how long the band has held the new value, in bars |
flips_recent_count, flips_lookback | integer, string | Bands 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
| Status | error.type | Cause | What to do |
|---|---|---|---|
400 | invalid_parameter | No 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. |
403 | tier_restricted | start before your plan's history, or timeframe=daily on a weekly-only plan. | Use a later date, or upgrade. |
404 | ticker_not_found | Between 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.