GET /orderbook
Retrieve price levels for all supported pairs in a chain
This endpoint provides price levels for all supported pairs on a specific chain. It is useful for estimating available liquidity and obtaining quotes for different order sizes.
Headers
Name | Description |
---|---|
| API Key retrieved from the Native app |
Params
Name | Description |
---|---|
| Blockchain name - Refer to the |
Example
Response
Type: Array of order pairs
Name | Description |
---|---|
| The symbol of the token the market maker is buying or selling. |
| The address of the token the market maker is buying or selling. |
| The symbol of the token that will exchanged for the base token. |
| The address of the token that will exchanged for the base token. |
| This is an array of tuples in the format of [[int, int]]. The value at index 0 is the amount of tokens and the value at index 1 is the price the market maker is willing to transact at. |
| "ask" or "bid". Indicates whether the market maker is buying or selling the base token. |
| The minimum amount of base tokens that the market maker is willing to transact. |
Example
Note: The price levels returned are in a non-cumulative format. For example, if you wanted to trade 30 ETH for USDT, the price calculation would be: 0.0001 * 1621.71 + 10 * 1621.72 + (30 - 0.0001 - 10) * 1621.54 = 48648.00002.
Explore this endpoint and see how it works here.
Last updated