docs/examples/asset-consumer/.
Is this asset pegged right now?
Read the class-aware verdict — don’t re-thresholddiscount yourself.
Watch the whole universe in one call
{ ok, generated_at, count, data } — read the rows from
.data. Prefer risk_score (0–100) for a single sortable number, or branch on state. To
join by Solana mint, use GET /v1/peg/feed (also a data array; each signal carries mint).
Only surface what’s off-peg
"state": "UNKNOWN" and
"state_reason": "stale_source"; the .state != "UNKNOWN" clause keeps them out of the
off-peg list. To see them separately, select .state == "UNKNOWN". The .state != null
clause is only a defensive guard; the API does not return a null state today.
Chart the discount history
bucket=raw for per-sample, 1m for 1-minute aggregates. Newest-first; window with
from/to (see Pagination & limits).
Verify a state transition on your own machine
Every state transition emits a public receipt with frozen inputs. Transitions intoDEPEG,
CRITICAL or BLACK_SWAN are also anchored on-chain when on-chain commits are enabled;
DRIFT and recoveries never are (see Audit receipts).
Gauge systemic (leverage) exposure
WebSocket
Live push instead of polling.
REST API
Poll state, history and audit receipts.
MCP for agents
Point an LLM agent straight at the oracle.
Errors
Codes + the
x-request-id header.