Returns the latest cached on-chain orderbook for all configured token pairs.
The cache refreshes on every new block via eth_subscribe, so the data always
reflects the most recent chain state.
Each pair has a baseToken (non-USDC token, e.g. WETH) and a quoteToken (USDC).
Prices are expressed as USDC per base token (decimal strings).
Amounts are human-readable base token quantities (decimal strings).
Levels are marginal — each level is an independent price point, not cumulative depth.
bids are sorted descending (best bid first); asks are sorted ascending (best ask first).
eth_subscribe, so the response always reflects the most recent chain state.
Use this endpoint to get current market prices before executing a swap, or to display market depth to users.
pairs may be empty.
quote() function with an EIP-712 signature. See the Integration Guide.
| Field | Type | Description |
|---|---|---|
blockNumber | integer | Block at which the orderbook was last refreshed |
blockTime | integer | Unix timestamp (seconds) of that block |
pairs | array | One entry per configured token/USDC pair |
pairs[].PairOrderbook| Field | Type | Description |
|---|---|---|
baseToken | string | EVM address of the non-USDC token (e.g. WETH) |
quoteToken | string | EVM address of the USDC token |
bids | array | Buy-side levels, sorted by descending price |
asks | array | Sell-side levels, sorted by ascending price |
bids[].OrderbookLevel / asks[].OrderbookLevel| Field | Type | Description |
|---|---|---|
price | string | USDC per token, decimal string (e.g. "3200.50") |
amount | string | Token quantity, decimal string (e.g. "1.5") |
Current orderbook snapshot
The on-chain block number at which the orderbook was last refreshed. Updates on every new block. Zero if the cache has not been populated yet.
29500000
Unix timestamp (seconds) of the block identified by blockNumber.
Zero if the cache has not been populated yet.
1741737600
Orderbook for each configured token/USDC pair. Empty if the cache has not been populated yet (e.g. service just started).