This endpoint calculates the bid/ask spread for one or more tokens. The spread represents the difference between the best bid and best ask prices, indicating market liquidity.
curl -X POST https://clob.kuest.com/spreads \ -H "Content-Type: application/json" \ -d '[ { "token_id": "0xdd22472e552920b8438158ea7238bfadfa4f736aa4cee91a6b86c39ead110917:0" }, { "token_id": "0xdd22472e552920b8438158ea7238bfadfa4f736aa4cee91a6b86c39ead110917:1" } ]'```bash## ResponseReturns an object mapping token IDs to their respective spreads.<ResponseField name="[token_id]" type="string"> The bid/ask spread for the specified token, expressed as a decimal string. The key is the token ID from the request.</ResponseField>### Response Example```json{ "0xdd22472e552920b8438158ea7238bfadfa4f736aa4cee91a6b86c39ead110917:0": "0.05", "0xdd22472e552920b8438158ea7238bfadfa4f736aa4cee91a6b86c39ead110917:1": "0.05"}```bash## Understanding SpreadsThe spread value indicates:- **Lower spread** (e.g., 0.01-0.05): High liquidity, tight market- **Higher spread** (e.g., 0.10+): Lower liquidity, wider market- A spread of 0 indicates no active orders on one or both sides## Use Cases- Assess market liquidity before placing orders- Compare trading costs across different markets- Monitor market health and trading conditions- Optimize order placement strategies