Get Spreads
Fetches bid-ask spreads for several tokens in one call.
Endpoint
Section titled “Endpoint”POST /spreads
Base URL: https://api.openfish.fun
Authentication
Section titled “Authentication”None required.
Request Body
Section titled “Request Body”A JSON array where each element identifies a token by its ID.
[ { "token_id": "0xabc123..." }, { "token_id": "0xdef456..." }]Response
Section titled “Response”{ "spreads": { "0xabc123...": "0.0200", "0xdef456...": "0.0100" }}| Field | Type | Description |
|---|---|---|
spreads | object | Mapping from token ID to its spread value |
Example
Section titled “Example”curl -X POST https://api.openfish.fun/spreads \ -H "Content-Type: application/json" \ -d '[{"token_id":"0xabc123..."},{"token_id":"0xdef456..."}]'