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.
Endpoint
Section titled “Endpoint”GET /last-trade-price
Base URL: https://api.openfish.fun
Authentication
Section titled “Authentication”None required.
Parameters
Section titled “Parameters”| Parameter | Type | Required | Description |
|---|---|---|---|
token_id | string | Yes | Token ID (asset ID) |
Response
Section titled “Response”{ "price": "0.4500", "side": "BUY"}| Field | Type | Description |
|---|---|---|
price | string | Last trade price formatted to 4 decimal places |
side | string | Always "BUY" |
Example
Section titled “Example”curl "https://api.openfish.fun/last-trade-price?token_id=0xabc123..."