Full-set endpoints
GET /v1/assets, GET /v1/calibration, and GET /v1/peg/feed return
every currently-tracked row (dozens, not millions). Poll them as often as your logic needs,
within the rate limit.
Windowed endpoints
Start of the window for
GET /v1/assets/{symbol}/history (this parameter is from, not
since). Pair with to.Max rows returned. History defaults to 500 (clamped 1 to 5000). The audit CSV export
(
GET /v1/audit.csv) is capped at 50k rows per ADR-0014.limit stops short of
from. Raw samples arrive every few seconds, which means the default 24h window does not fit
in 500 rows. The envelope says so: truncated is true, next_to is the instant just
before the oldest row returned, and next_from is the effective lower bound of the window
(the from you sent, or the default you got). Repeat the request with
from=<next_from>&to=<next_to> (same bucket and limit) until truncated is false.
Always send from=<next_from> when paging: the default from is now minus 24h, not to
minus 24h, so paging without from keeps from at now-24h, and once next_to is older than
24h the request returns 400 invalid_range. For a 24h chart in one call,
use bucket=1m&limit=1440.
The receipt ledger
GET /v1/audit is the public transition ledger. It returns a bare JSON array (not the
{ ok, generated_at, count, data } envelope), ordered newest first by detected_at, then
by id descending. Page through it with a keyset cursor.
Cursor. Returns only rows strictly older than this
detected_at. Pass the last row’s
detected_at, exactly as it was emitted (millisecond precision).Tie-breaker for
before. Pass the last row’s id too, so rows that share the cursor
millisecond are neither skipped nor repeated. Requires before (otherwise 400 invalid_cursor).Time window on
detected_at: since is inclusive, until is exclusive. until must be after
since (otherwise 400 invalid_range).Exact symbol, case-sensitive (
USDe, not usde). 1 to 32 characters of
[A-Za-z0-9._+*-] (otherwise 400 invalid_asset). A non-public asset (the leveraged synthetic
xSOL, class synth_lev, which every /v1/assets route also excludes) is 404 unknown_asset, here and on /v1/audit.csv. Its receipts are not listed in the index or the
CSV, but each one stays reachable by id at /v1/audit/{alert_id}: receipts are permanent
public evidence.state filters on the destination state: PEGGED, DRIFT, DEPEG, CRITICAL,
BLACK_SWAN or UNKNOWN (anything else is 400 invalid_state).
exclude_pegged defaults to true, which hides recoveries back to PEGGED; pass
exclude_pegged=false to walk every transition.limit:
since only bounds the window; it is not a forward cursor. Because the ledger is
newest-first, since plus limit always returns the newest rows inside the window, so use
before / before_id to move to older rows.
For bulk export, GET /v1/audit.csv takes a required from / to window (both inclusive,
at most 90 days, otherwise 400 date_range_too_large) and an optional asset. It is limited
to 10 requests/min per IP on top of the global limit.
The audit ledger is append-only. History (
/v1/assets/{symbol}/history) is also returned
newest-first.