Get Midpoint
Get the midpoint price for a market (halfway between best bid or best ask). HTTP REQUESTGET /<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 REQUESTPOST /<clob-endpoint>/midpoints
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 |
Response
{[asset_id]: mid_price}