Get Orderbook
API Description
Retrieves the current order book (market depth) for a specific trading pair. This endpoint provides real-time bid and ask prices with their corresponding quantities at multiple depth levels (1, 10, 100, 200), essential for market analysis and trading decisions.
HTTP Request
GET /v4/public/mm/orderBookRequest Parameters
chainId
uint64
Yes
Chain ID (e.g., 143 for Monad mainnet)
symbol
string
Yes
Trading pair symbol (e.g., BTCUSDC)
Note: The depth parameter is not used. The API returns order book data at multiple depth levels (1, 10, 100, 200) automatically.
Response Parameters
The response is a map where keys are depth levels (1, 10, 100, 200) and values are order book data objects.
data
object
Map of depth levels to order book data
-> {depth}
object
Order book data for a specific depth level
-> blockInfo
object
Block information
-> -> height
uint64
Block height
-> -> timestamp
uint64
Block timestamp (Unix timestamp in seconds)
-> bids
array
Array of bid orders
-> -> tick
int64
Price tick
-> -> price
string
Price (in wei/smallest unit)
-> -> baseSize
string
Base asset size at this price level
-> -> quoteSize
string
Quote asset size at this price level
-> -> baseSum
string
Cumulative base asset sum up to this level
-> -> quoteSum
string
Cumulative quote asset sum up to this level
-> asks
array
Array of ask orders
-> -> tick
int64
Price tick
-> -> price
string
Price (in wei/smallest unit)
-> -> baseSize
string
Base asset size at this price level
-> -> quoteSize
string
Quote asset size at this price level
-> -> baseSum
string
Cumulative base asset sum up to this level
-> -> quoteSum
string
Cumulative quote asset sum up to this level
Request Example
Python (requests)
Note: This endpoint requires API authentication. See Quick Start Guide for signature generation details.
Response Example
Success Response
Error Response
Notes
This endpoint requires API authentication (see Quick Start Guide)
Required parameters:
chainId,symbolNote: The
depthparameter is not used. The API automatically returns order book data at multiple depth levels (1, 10, 100, 200)Response structure: Returns a map where keys are depth levels ("1", "10", "100", "200") and values are order book data
Price format: All prices and sizes are returned as strings in wei/smallest unit format to preserve precision
Cumulative sums:
baseSumandquoteSumare cumulative totals up to and including the current price levelOrder book sorting:
Bids are sorted in descending order (highest price first)
Asks are sorted in ascending order (lowest price first)
Block information: Each depth level includes block height and timestamp when the data was captured
Tick: Represents the price tick level in the order book
Depth levels:
"1": Most granular depth (individual price levels)
"10": Aggregated depth with 10x tick spacing
"100": Aggregated depth with 100x tick spacing
"200": Aggregated depth with 200x tick spacing
Rate limit: 120 requests per minute
Success response has
code: 0(not 200)
Last updated