Get Orderbooks
Fetch orderbooks details for the specified markets. Orders with the same price will NOT be aggregated.
Request
Method:
GET./api/v2/openbook/orderbooks/{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
array
See bids & asks
below for details. Sorted by price in descending order.
asks
array
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).
orderID
string
Unique order ID assgined by openbook.
clientOrderID
string
Client order ID assgined by the order owner.
ownerAddress
string
Owner address for this order.
Example:
Last updated