Get Market Prices
Returns both BUY and SELL top-of-book prices for multiple tokens in a single request.
Endpoint
Section titled “Endpoint”POST /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 object mapping each token ID to its BUY and SELL prices.
{ "0xabc123...": { "BUY": "0.4500", "SELL": "0.4400" }, "0xdef456...": { "BUY": "0.7200", "SELL": "0.7100" }}Example
Section titled “Example”curl -X POST https://api.openfish.fun/prices \ -H "Content-Type: application/json" \ -d '[{"token_id":"0xabc123..."},{"token_id":"0xdef456..."}]'