L2 order book
Read a bounded finalized order-book snapshot.
Best bid and offer
Read the current top of book.
User balances
Read all current spot balances in the retained snapshot.
User open orders
Read a user’s current open-order snapshot.
Projection states
/api/depth, /api/bbo, and the user snapshot routes accept proposed,
voted, or finalized. Short forms p, v, and f are also accepted.
Numeric units
- Addresses are lowercase
0x-prefixed 20-byte values. - User IDs are unsigned decimal path values.
- Book sequence cursors are JSON integers.
- Book prices are native pp integer strings; sizes are native sp integer strings.
- Order prices are signed native pp integer strings; sizes remain native market size-precision integers.
- Base sizes use the market’s native
sizePrecisiondomain. - Token balances use the token’s native decimal domain.
- Percentage fields are decimal ratios:
"0.01"means one percent.
truncated when
additional entries were omitted.
Errors
Errors use one envelope:BadRequest, NotFound, Unsupported, RateLimited, and
Internal.