Get the spread from one or multiple markets
Get the spread for a market.
HTTP REQUEST
GET /<clob-endpoint>/spread
Name | Required | Type | Description |
---|---|---|---|
token_id | yes | string | token ID to get the spread for |
{"spread": ".513"}
Get the spreads for a set of markets.
HTTP REQUEST
GET /<clob-endpoint>/spreads
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 |
{[asset_id]: spread}