Get Midpoint Prices
Fetches midpoint prices for multiple tokens in one call.
Endpoint
Section titled “Endpoint”POST /midpoints
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 midpoint price.
{ "0xabc123...": "0.4500", "0xdef456...": "0.7150"}Example
Section titled “Example”curl -X POST https://api.openfish.fun/midpoints \ -H "Content-Type: application/json" \ -d '[{"token_id":"0xabc123..."},{"token_id":"0xdef456..."}]'