Market Data Endpoints
Market data endpoints provide access to trading pair information, market statistics, and real-time ticker data.
Get Markets List
Retrieve a list of all available trading markets.
GET /v1/markets
curl -X GET \
"https://api.o2.app/v1/markets" \
-H "Accept: application/json"Response: Returns market information including market IDs, trading pairs, and configuration.
Source: packages/api/src/app/routes/v1/markets.rs:get_markets_info
Get Market Summary
Get 24-hour market statistics and summary data.
GET /v1/markets/summary
Query Parameters
curl -X GET \
"https://api.o2.app/v1/markets/summary" \
-H "Accept: application/json"Source: packages/api/src/app/routes/v1/markets.rs:get_market_summary
Get Market Ticker
Get real-time ticker data for markets.
GET /v1/markets/ticker
Query Parameters
curl -X GET \
"https://api.o2.app/v1/markets/ticker" \
-H "Accept: application/json"Source: packages/api/src/app/routes/v1/markets.rs:get_market_ticker
Turbo Order Books
Markets with a Turbo order book can be read with turbo=true on the markets list, summary, ticker and fees endpoints. GET /v1/markets?turbo=true lists only those markets, with contract_id set to the Turbo book and the Turbo book's own maker_fee and taker_fee. See Turbo Order Books.