Get one price
GET /<clob-endpoint>/price
Name | Required | Type | Description |
---|---|---|---|
token_id | yes | string | token ID to get price for |
side | yes | string | buy or sell (ask and bid) |
{"price": ".512"}
POST /<clob-endpoint>/prices
Name | Required | Type | Description |
---|---|---|---|
params | yes | BookParams | search params for books |
BookParams
object is of the form:
Name | Required | Type | Description |
---|---|---|---|
token_id | yes | string | token ID of market to get book for |
side | yes | string | BUY or SELL |
{[asset_id]: {[side]: price}}
Token ID to get the price for.
Whether to get the buy (bid) or sell (ask) price.
buy
, sell
Price successfully retrieved
The response is of type object
.