Skip to content
🌐Network: Mainnet

Market Data Endpoints

Market data endpoints provide access to trading pair information, market statistics, and real-time ticker data.

1. Get Markets List

Endpoint: GET /v1/markets

Description: Retrieve a list of all available trading 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

2. Get Market Summary

Endpoint: GET /v1/markets/summary

Description: Get 24-hour market statistics and summary data.

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

3. Get Market Ticker

Endpoint: GET /v1/markets/ticker

Description: Get real-time ticker data for markets.

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