Pricing and Books
Get Book(s)
Get one or multiple books.
Get Single Book
Get a order book summary for a market.
HTTP REQUEST
GET /<clob-endpoint>/book
Request Parameters
Name | Required | Type | Description |
---|---|---|---|
token_id | yes | string | token ID of market to get book for |
Response Format
Name | Type | Description |
---|---|---|
market | string | condition id |
asset_id | string | id of the asset/token |
hash | string | hash summary of the orderbook content |
timestamp | string | unix timestamp the current book generation in milliseconds (1/1,000 second) |
bids | OrderSummary[] | list of bid levels |
asks | OrderSummary[] | list of ask levels |
A OrderSummary
object is of the form:
Name | Type | Description |
---|---|---|
price | string | price |
size | string | size |
Get Books
Get order book summaries for a set of markets.
HTTP REQUEST
POST /<clob-endpoint>/books
Request Parameters
Name | Required | Type | Description |
---|---|---|---|
params | yes | BookParams | search params for books |
A BookParams
object is of the form:
Name | Required | Type | Description |
---|---|---|---|
token_id | yes | string | token ID of market to get book for |
Response Format
Name | Type | Description |
---|---|---|
- | OrderBook[] | list orderbooks |
A OrderBook
object is of the form:
Name | Type | Description |
---|---|---|
market | string | condition id |
asset_id | string | id of the asset/token |
hash | string | hash summary of the orderbook content |
timestamp | string | unix timestamp the current book generation in milliseconds (1/1,000 second) |
bids | OrderSummary[] | list of bid levels |
asks | OrderSummary[] | list of ask levels |
A OrderSummary
object is of the form:
Name | Type | Description |
---|---|---|
price | string | price |
size | string | size |