Daejin Developers

Synthetic order book (derived from AMM curve)

GET
/clob/markets/{id}/book

Authorization

ApiKeyAuth
x-api-key<token>

In: header

Path Parameters

id*string

Market id (Mongo id) or numeric on-chain marketId.

Query Parameters

side?string

Value in

  • "yes"
  • "no"
levels?integer
Default5

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/clob/markets/string/book"
{  "marketId": "string",  "side": "yes",  "asks": [    {      "price": 0,      "size": 0,      "shares": 0    }  ],  "bids": [    {      "price": 0,      "size": 0,      "shares": 0    }  ],  "bestAsk": 0,  "bestBid": 0,  "spread": 0,  "midpoint": 0,  "synthetic": true}