Loading the API documentation
No notifications.
Language
English
No other language is available yet.
Loading the API documentation
/v1/markets/{symbol}/orderbookAggregated order book of one venue
A market can have two venues. clob is the Zethar chain's order book: resting orders aggregated per price level. amm is a Uniswap V2 pool: levels derived from the pool reserves, not resting orders. The two are never merged. Without venue, the server answers with clob when an order book source is configured for the market, otherwise with amm. The response names the venue.
| Name | In | Required | Type and limits | Description |
|---|---|---|---|---|
symbol | path | Yes | string, pattern ^[A-Za-z0-9]{1,12}-[A-Za-z0-9]{1,12}$ | BASE-QUOTE, case-insensitive. Anything else is a 400. |
depth | query | No | integer, 1 to 100, default 20 | None |
venue | query | No | Venue: one of clob, amm | None |
| Status | Meaning | Body |
|---|---|---|
| 200 | OK | OrderBookResponse |
| 400 | Invalid input | Error |
| 404 | Unknown resource | Error |
curl -s 'https://exchange.zethareum.com/v1/markets/ZET-ZUSD/orderbook'The values in the path are examples: put in your own (angle brackets mark a value to fill in).