> For the complete documentation index, see [llms.txt](https://docs.native.org/old/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.native.org/old/native-v1/api-references/get-v1-orderbook.md).

# GET /v1/orderbook

Get price levels for all supported pair in a chain

```url
GET https://newapi.native.org/v1/orderbook?chainId=1
```

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. <br>

**Headers**

<table><thead><tr><th width="202">Name</th><th>Description</th></tr></thead><tbody><tr><td>apiKey</td><td>Contact Native to get your API key.</td></tr></tbody></table>

\
**Params**

<table><thead><tr><th width="202">Name</th><th>Description</th></tr></thead><tbody><tr><td>chainId</td><td>Chain id, ex: 1 for ethereum and 137 for polygon</td></tr></tbody></table>

#### Response

```json
[
    {
        "base_symbol": "ETH",
        "base_address": "0x2170ed0880ac9a755fd29b2688956bd959f933f8",
        "quote_symbol": "USDT",
        "quote_address": "0x55d398326f99059ff775485246999027b3197955",
        "levels": [
            [
                0.0001,
                1621.71
            ],
            [
                10,
                1621.72
            ],
            [
                40.75786733219471,
                1621.54
            ]
        ],
        "side": "bid",
        "minimum_in_base": 0.0001
    },
}
```

**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`&#x20;
