Skip to content

Get Spreads

Fetches bid-ask spreads for several tokens in one call.

POST /spreads

Base URL: https://api.openfish.fun

None required.

A JSON array where each element identifies a token by its ID.

[
{ "token_id": "0xabc123..." },
{ "token_id": "0xdef456..." }
]
{
"spreads": {
"0xabc123...": "0.0200",
"0xdef456...": "0.0100"
}
}
FieldTypeDescription
spreadsobjectMapping from token ID to its spread value
Terminal window
curl -X POST https://api.openfish.fun/spreads \
-H "Content-Type: application/json" \
-d '[{"token_id":"0xabc123..."},{"token_id":"0xdef456..."}]'