Skip to content

Get Last Trade Prices

Fetches the most recent trade prices for several tokens in one call.

POST /last-trades-prices

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

None required.

A JSON array where each element identifies a token by its ID.

[
{ "token_id": "0xabc123..." },
{ "token_id": "0xdef456..." }
]

A JSON array of last-trade-price objects, one per requested token.

[
{
"token_id": "0xabc123...",
"price": "0.4500",
"side": "BUY"
},
{
"token_id": "0xdef456...",
"price": "0.7200",
"side": "BUY"
}
]
FieldTypeDescription
token_idstringToken ID
pricestringLast trade price formatted to 4 decimal places
sidestringAlways "BUY"
Terminal window
curl -X POST https://api.openfish.fun/last-trades-prices \
-H "Content-Type: application/json" \
-d '[{"token_id":"0xabc123..."},{"token_id":"0xdef456..."}]'