GET /v1/orderbook
Get price levels for all supported pair in a chain
This endpoint provides price levels for all the supported pairs in a particular chain. This is useful to estimate the available liquidity and quote for different order sizes.
Headers
Name
Description
apiKey
Contact Native to get your API key.
Params
Name
Description
chainId
Chain id, ex: 1 for ethereum and 137 for polygon
Response
Note: the price levels returned are ordered in a non-cumulative manner. So, in the above example, if someone wanted to trade 30 ETH for USDT, the price would be: 0.0001 * 1621.71 + 10 * 1621.72 + (30 - 0.0001 - 10) * 1621.54 = 48648.00002
Last updated