Skip to content

Get Midpoint Prices

Fetches midpoint prices for multiple tokens in one call.

POST /midpoints

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 midpoint price.

{
"0xabc123...": "0.4500",
"0xdef456...": "0.7150"
}
Terminal window
curl -X POST https://api.openfish.fun/midpoints \
-H "Content-Type: application/json" \
-d '[{"token_id":"0xabc123..."},{"token_id":"0xdef456..."}]'