Skip to main content
GET
Get live orderbook
Returns the live on-chain orderbook for all configured token pairs. The cache is refreshed on every new block via 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.
If the cache has not been populated yet (service just started), pairs may be empty.

Alternative: On-chain Quote

For a precise quote for a specific input amount, use the on-chain quote() function with an EIP-712 signature. See the Integration Guide.

Response Fields

Top-level

pairs[].PairOrderbook

bids[].OrderbookLevel / asks[].OrderbookLevel

Authorizations

X-API-KEY
string
header
required

API key issued by the Kipseli team. Required on every request.

Response

Current orderbook snapshot

blockNumber
integer<int64>

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.

Example:

29500000

blockTime
integer<int64>

Unix timestamp (seconds) of the block identified by blockNumber. Zero if the cache has not been populated yet.

Example:

1741737600

pairs
object[]

Orderbook for each configured token/USDC pair. Empty if the cache has not been populated yet (e.g. service just started).