Skip to content

Get Market Price

Returns the top-of-book price for a given token and side: the best ask when buying, or the best bid when selling. If no orders exist in the book, the endpoint falls back to the seed price stored in the database.

GET /price

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

None required.

ParameterTypeRequiredDescription
token_idstringYesToken ID (asset ID)
sidestringNoBUY or SELL. Default: BUY
{
"price": 0.45
}
FieldTypeDescription
pricenumberMarket price as a floating-point number
Terminal window
curl "https://api.openfish.fun/price?token_id=0xabc123...&side=BUY"