Get Last Trade Prices
Fetches the most recent trade prices for several tokens in one call.
Endpoint
Section titled “Endpoint”POST /last-trades-prices
Base URL: https://api.openfish.fun
Authentication
Section titled “Authentication”None required.
Request Body
Section titled “Request Body”A JSON array where each element identifies a token by its ID.
[ { "token_id": "0xabc123..." }, { "token_id": "0xdef456..." }]Response
Section titled “Response”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" }]| Field | Type | Description |
|---|---|---|
token_id | string | Token ID |
price | string | Last trade price formatted to 4 decimal places |
side | string | Always "BUY" |
Example
Section titled “Example”curl -X POST https://api.openfish.fun/last-trades-prices \ -H "Content-Type: application/json" \ -d '[{"token_id":"0xabc123..."},{"token_id":"0xdef456..."}]'