Network: Mainnet▼
Order Book & Depth Data
Access real-time order book depth data for markets, showing current bids and asks.
Get Order Book Depth
Endpoint: GET /v1/depth
Description: Retrieve current order book depth (bids and asks) for a market.
Query Parameters
curl -X GET \
"https://api.o2.app/v1/depth" \
-H "Accept: application/json"Response Structure
Source: packages/api/src/domain/depth.rs:13-17
action: depthorders.buys: Array of buy orders (sorted by price descending)orders.sells: Array of sell orders (sorted by price ascending)market_id: Market identifier