Skip to content

Get Market Prices

Returns both BUY and SELL top-of-book prices for multiple tokens in a single request.

POST /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 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"
}
}
Terminal window
curl -X POST https://api.openfish.fun/prices \
-H "Content-Type: application/json" \
-d '[{"token_id":"0xabc123..."},{"token_id":"0xdef456..."}]'