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.
Endpoint
Section titled “Endpoint”GET /spread
Base URL: https://api.openfish.fun
Authentication
Section titled “Authentication”None required.
Parameters
Section titled “Parameters”| Parameter | Type | Required | Description |
|---|---|---|---|
token_id | string | Yes | Token ID (asset ID) |
Response
Section titled “Response”{ "spread": "0.0200"}| Field | Type | Description |
|---|---|---|
spread | string | Spread formatted to 4 decimal places |
Example
Section titled “Example”curl "https://api.openfish.fun/spread?token_id=0xabc123..."