Get Price
Get the price for a market (best bid or best ask). HTTP REQUESTGET /<clob-endpoint>/price
Request Payload Parameters
Name | Required | Type | Description |
---|---|---|---|
token_id | yes | string | token ID to get price for |
side | yes | string | buy or sell (ask and bid) |
Response
{"price": ".512"}
Get Prices
Get the prices for a group of markets (best bid or best ask). HTTP REQUESTPOST /<clob-endpoint>/prices
Request Payload Parameters
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 |
Response
{[asset_id]: {[side]: price}}
Query Parameters
The unique identifier for the token
The side of the market (BUY or SELL)
Available options:
BUY
, SELL
Response
Successful response
The market price (as string to maintain precision)
Example:
"1800.50"