Field reference / model book

model_risk_state

The model's own risk switch on the row date: risk_on or risk_off. Null for a model that has no such switch.

LevelPer model, one value per date
Typestring (band)
Can be nullYes
Categorymodel book
Returned by/v1/models

Values

One of these, in order:

risk_on risk_off

Change markers

Every row also says how long this band has held its value and what it was before. Ask for these by name like any field. See Diff.

FieldTypeWhat it says
model_risk_state_stabilitystring (band)How settled model_risk_state is: volatile when it changed often in the last 30 days (12 weeks on weekly rows); otherwise fresh (just changed), holding, or established (unchanged for a long time).
model_risk_state_periodsintegerDaily or weekly rows, including this one, that model_risk_state has held its current value; 1 means it changed on this row.
model_risk_state_flips_recent_countintegerHow many times model_risk_state changed value in the last 30 days (12 weeks on weekly rows).
model_risk_state_flips_lookbackstringThe window model_risk_state_flips_recent_count covers: 30d on daily rows, 12w on weekly.
model_risk_state_prevstring (band)The value model_risk_state had before it changed, on the row where it changed (when _periods = 1); null otherwise.

Getting it

One model's history of it:

curl -G "https://api.tickerdb.com/v1/models/garp-core-10/history" \ --data-urlencode 'start=2025-01-01' \ --data-urlencode 'fields=["model_risk_state"]' \ -H "Authorization: Bearer YOUR_API_KEY"

Models matching it:

curl -G "https://api.tickerdb.com/v1/models" \ --data-urlencode 'filters=[{"field":"model_risk_state","op":"eq","value":"risk_on"}]' \ -H "Authorization: Bearer YOUR_API_KEY"

Every field, with its type and values, is also in /v1/schema/fields.