Skip to main content
GET
Get peg state by mint address

Path Parameters

mint
string
required

SPL mint address (base58). Resolved to the asset's symbol, then identical to /v1/assets/{symbol}/state.

Response

Current state + transition timestamp

asset
string
required
discount
string
required
intrinsic_usd
string
required
market_usd
string
required
since
string<date-time>
required

Timestamp of the most recent transition into the current state: the first snapshot of the current contiguous run. Constant across recomputes; it changes ONLY on a real state transition. For an asset that has only ever held one state it is that asset's first observed snapshot, which is NOT a transition: see since_is_lower_bound and history_start. When stale is true it collapses to updated_at, the moment data stopped.

since_is_lower_bound
boolean
required

true when since is at the start of stored history (since <= history_start): the asset has held this state for the whole recorded window and may have entered it earlier, so since is a lower bound, not a transition time.

stale
boolean
required

true when updated_at is older than the 15-minute freshness bound the list/detail endpoints enforce; i.e. the feed has likely frozen. Unlike list/detail, /state still returns the last value rather than 404-hiding it; read this flag to fail safe. Consumers needing a tighter bound can derive their own from updated_at.

state
enum<string>
required

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.

Available options:
PEGGED,
DRIFT,
DEPEG,
CRITICAL,
BLACK_SWAN,
UNKNOWN
updated_at
string<date-time>
required

Timestamp the current snapshot was computed (the latest discount_snapshots.ts). Distinct from since (state-transition time): this is the FRESHNESS signal. The engine stops writing snapshots when a feed goes stale ("missing data is not confirming data"; H8), so a frozen updated_at is exactly how a stale/frozen feed surfaces on this endpoint.

confidence
string | null

Pyth oracle confidence bucket: high | medium | low | unknown. The PRICE-ORACLE confidence-interval signal (conf/price ratio); the field integrators should gate automation on alongside state. Mirrors the list endpoint's confidence. Collapses to unknown when the feed is stale (same as state), so a frozen feed cannot read as confidently pegged. Omitted only when no snapshot carries a confidence value (non-Pyth-dependent assets).

history_start
string<date-time> | null

RFC3339 of the earliest snapshot Pegana has stored for this asset; no history exists before it. Production history begins 2026-10-17T09:20Z (the database was rebuilt then), so for assets tracked before that it is about that instant. Omitted when unknown.

state_reason
string | null

Advisory machine-readable reason for the current state (mirrors discount_snapshots.state_reason and Receipt.state_reason).

Emitted today:

  • premium_sanity: engine NAV-sanity override: smoothed discount exceeded the premium-sanity bound, state forced to UNKNOWN (intrinsic anchor suspect).
  • stale_source: API layer: no discount snapshot in the last 15 min (sources or engine dark), state collapsed to UNKNOWN.
  • market_unavailable: API layer: no discount snapshot in the last 15 min, but the intrinsic leg IS fresh and no market tick exists in that window (thin market, no reliable quote). State UNKNOWN; the other fields are from the last discount snapshot (updated_at = when it stopped), like stale_source.

Reserved; not yet emitted (planned for depth-gate / oracle-crosscheck work): no_oracle_crosscheck | intrinsic_unavailable | shallow_market | nominal.

Omitted when null.