Skip to content

API Introduction

Openfish exposes four independent backend services, each responsible for a distinct area of functionality. All services communicate over HTTPS and return JSON.


https://api.openfish.fun (port 3002)

The central trading service. Provides order book snapshots, live pricing (midpoints, spreads, last-trade), and historical price data. All order lifecycle operations — placement, amendment, and cancellation — go through this service. Write operations are gated by authenticated headers.

https://data.openfish.fun (port 3003)

Aggregated analytics and portfolio data. Covers user positions, trade histories, activity feeds, token-holder breakdowns, open interest figures, leaderboard rankings, and builder-level metrics.

https://gamma.openfish.fun (port 3001)

The discovery layer. Surfaces markets, events, tags, series, comments, search results, and public user profiles. Intended for browsing and exploring available prediction markets.

https://bridge.openfish.fun (port 3004)

Manages on- and off-ramp flows for deposits and withdrawals. Requests are relayed through a third-party bridge provider.


Read-only endpoints across the Gamma API, Data API, and CLOB (order book, prices, spreads) are open to all callers without credentials.

Trading operations on the CLOB API — submitting orders, cancelling orders, and sending heartbeats — demand L2 authentication headers on every request. Refer to Authentication for the full setup.