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:
Parameter | Type | Description |
---|---|---|
| array | A list of Solana program addresses or market symbols. |
| number | OPTIONAL. The maximum number of orders to fetch on both sides. If not specified, gets the whole orderbook. |
Subscribe:
Even Result Details:
Field | Type | Description |
---|---|---|
| string | The slot number. |
| string | See |
orderbook
Field | Type | Description |
---|---|---|
| string | Symbol of the market. |
| string | The program address the target market. |
| string | Name of the DEX project. |
| list | See |
| list | See |
bids & asks
Field | Type | Description |
---|---|---|
| number | The price of the order (in quote/base currency). |
| number | The size of the order (in base currency). |
Sample event:
Last updated