Skip to main content
Task-first snippets. All are public (no key), rate-limited per IP, and return the Response format conventions (decimal strings, RFC3339 timestamps). A runnable reference adapter (TypeScript + Python) lives in the repo at docs/examples/asset-consumer/.

Is this asset pegged right now?

Read the class-aware verdict — don’t re-threshold discount yourself.
Always gate on stale (and updated_at freshness). A stale:true or UNKNOWN reading means “no trustworthy signal”, not “healthy” — fail safe.

Watch the whole universe in one call

List endpoints return the envelope { 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

Assets that are tracked but have no fresh snapshot come back with "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 into DEPEG, 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

Advisory, anonymous-by-construction — see the Systemic impact section for the full model.

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.