Skip to content

Get Spread

Returns the gap between the best ask and the best bid for a single token. When no orders exist in the book, a default value of 0.02 is returned.

GET /spread

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

None required.

ParameterTypeRequiredDescription
token_idstringYesToken ID (asset ID)
{
"spread": "0.0200"
}
FieldTypeDescription
spreadstringSpread formatted to 4 decimal places
Terminal window
curl "https://api.openfish.fun/spread?token_id=0xabc123..."