Pricing and Books
Get Midpoint(s)
Get one or multiple or market midpoints
Get Midpoint
Get the midpoint price for a market (halfway between best bid or best ask).
HTTP REQUEST
GET /<clob-endpoint>/midpoint
Request Payload Parameters
Name | Required | Type | Description |
---|---|---|---|
token_id | yes | string | token ID market to get price for |
Response
{"mid": "0.55"}
Get Midpoints
Get the midpoint prices for a set of market (halfway between best bid or best ask).
HTTP REQUEST
POST /<clob-endpoint>/midpoints
Request Payload 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
{[asset_id]: mid_price}