Endpoint
Query parameters
Trading pair symbol (e.g.,
SOL_USDC, BTC_USDT)Response
Array of bid orders in the order book. Each bid is represented as a tuple of
[price, quantity].Array of ask orders in the order book. Each ask is represented as a tuple of
[price, quantity].Example request
Example response
Error responses
Internal server error - Failed to retrieve depth from the matching engine
Notes
- Bids are sorted in descending order by price (highest bid first)
- Asks are sorted in ascending order by price (lowest ask first)
- Quantities at each price level represent the sum of all orders at that price
- The depth data is retrieved in real-time from the matching engine via Redis pub/sub