Skip to content

Get Last Trade Price

Returns the price at which the most recent trade occurred for a given token. If no trades have taken place, the endpoint falls back first to the engine-implied price, then to the database seed price.

GET /last-trade-price

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

None required.

ParameterTypeRequiredDescription
token_idstringYesToken ID (asset ID)
{
"price": "0.4500",
"side": "BUY"
}
FieldTypeDescription
pricestringLast trade price formatted to 4 decimal places
sidestringAlways "BUY"
Terminal window
curl "https://api.openfish.fun/last-trade-price?token_id=0xabc123..."