Overview
We’ve built the Fairground API to support your backend data needs. Use it to look up markets and prices, and track a wallet’s orders, positions, and trade history.Services
Endpoints are grouped into seven services, listed in the sidebar under their own sections:Making requests
Every endpoint, including reads, is aPOST request with a JSON body, following the ConnectRPC convention:
Base URL
Authentication
Authentication will be introduced in future API versions.Example
Response
Common patterns
A few conventions repeat across most endpoints:Selecting a market: market_id vs. market_symbol
Selecting a market: market_id vs. market_symbol
Most endpoints that take a market accept either form:
GetHistoricalPrices is the one exception. It only supports the marketId form. Check the endpoint’s own description on its specific behavior.Wallet addresses
Wallet addresses
Wallet address fields are matched case-insensitively and trimmed of
surrounding whitespace server-side.
Pagination
Pagination
Endpoints that paginate use
limit/offset. Defaults and caps vary per endpoint, check each endpoint’s description.