Get an asset's discount history
Path Parameters
Asset symbol — case-insensitive
Query Parameters
raw (default) samples directly from discount_snapshots; 1m
reads the 1-minute continuous aggregate so longer ranges stay cheap.
Any other value is rejected with 400 rather than silently falling
back to raw (QA B-020).
Inclusive lower bound on ts. Defaults to now − 24 hours.
Inclusive upper bound on ts. Defaults to now.
Page size, clamped to [1, 5000]. Default 500.
Response
Time series of discount values, newest first
EWMA-smoothed discount (the value the state machine uses).
Class-aware peg state. Mirrors the engine PegState enum and the
peg_state Postgres enum. Used for state, from_state, and to_state
fields across the API.
The state is CLASS-AWARE: an LST reading a −1.4% discount (normal unstaking
spread) is PEGGED, while a fiat stable at far less would be DRIFT. Trust
this value directly rather than imposing a naive discount cut.
PEGGED, DRIFT, DEPEG, CRITICAL, BLACK_SWAN, UNKNOWN Raw discount sample (1 - market/intrinsic) before EWMA smoothing.
None for bucket=1m because the continuous aggregate
discount_1m only stores avg(discount_smooth). For bucket=raw,
populated from discount_snapshots.discount_raw.