Get Depth
Fetch market depth details for the specified markets. Orders with the same price will be aggregated.
Request
Method:
GET ./api/v2/openbook/depth/{market}
Parameters:
market
array
A list of Solana program addresses or market symbols.
limit
number
OPTIONAL. The maximum number of orders to fetch on both sides. If not specified, gets the whole orderbook.
Request example:
Response:
Fields:
market
string
Symbol of the market. Supported multiple markets. Use "," to separate markets.
marketAddress
string
Smart contract address for the market.
bids
number
See bids & asks
below for details. Sorted by price in descending order.
asks
number
See bids & asks
r below for details. Sorted by price in ascending order.
bids & asks
:
price
number
The price of the order (in quote/base currency).
size
number
The size of the order (in base currency).
Example:
Last updated