Skip to content

Get Midpoint Price

Returns the midpoint between the best bid and best ask for a given token. When the order book has no resting orders, the endpoint falls back to the seed price stored in the database.

GET /midpoint

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

None required.

ParameterTypeRequiredDescription
token_idstringYesToken ID (asset ID)
{
"mid": "0.4500"
}
FieldTypeDescription
midstringMidpoint price formatted to 4 decimal places
Terminal window
curl "https://api.openfish.fun/midpoint?token_id=0xabc123..."