Pricing and Books
Get Spread(s)
Get the spread from one or multiple markets
Get Spread
Get the spread for a market.
HTTP REQUEST
GET /<clob-endpoint>/spread
Request Payload Parameters
Name | Required | Type | Description |
---|---|---|---|
token_id | yes | string | token ID to get the spread for |
Response
{"spread": ".513"}
Get Spreads
Get the spreads for a set of markets.
HTTP REQUEST
GET /<clob-endpoint>/spreads
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]: spread}