Skip to main content
POST
/
spreads
Get bid-ask spreads
curl --request POST \
  --url https://clob.forka.st/spreads \
  --header 'Content-Type: application/json' \
  --data '
[
  {
    "token_id": "1234567890"
  },
  {
    "token_id": "0987654321"
  }
]
'
{
  "1234567890": "0.60",
  "0987654321": "0.20"
}
Fetch the current bid-ask spread for one or more tokens by sending their CLOB token_ids. The response is a map where each key is the requested token_id and the value is the spread (best ask minus best bid).

Body

application/json
Minimum array length: 1
token_id
string
required

The unique identifier for the token.

side
enum<string>

Optional side parameter.

Available options:
BUY,
SELL

Response

200 - application/json

Successful response

{key}
string