Stream Orderbooks
This channel provides orderbook data specified by the market. It will tick every time there were updates in the targeted market.
Subscribe
Parameters:
markets
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.
Subscribe:
Even Result Details:
slot
string
The slot number.
orderbook
string
See orderbook
below for details.
orderbook
market
string
Symbol of the market.
marketAddress
string
The program address the target market.
project
string
Name of the DEX project. "P_OPENBOOK"
, "P_SERUM"
bids
list
See bids & asks
below for details. Sorted by price in descending order.
asks
list
See bids & asks
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).
Sample event:
Last updated