Get Orderbook
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.
Understanding the Orderbook
- bids — prices at which PropAMM will buy the base token (you sell base, receive USDC). Sorted descending.
- asks — prices at which PropAMM will sell the base token (you buy base, pay USDC). Sorted ascending.
- Each level is marginal — independent price points, not cumulative depth.
- Prices and amounts are decimal strings to preserve EVM-scale precision.
pairs may be empty.
Alternative: On-chain Quote
For a precise quote for a specific input amount, use the on-chainquote() function with an EIP-712 signature. See the Integration Guide.
Response Fields
Top-level
| 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") |
Authorizations
API key issued by the Kipseli team. Required on every request.
Response
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).