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:
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. |
Request example:
Response:
Fields:
Parameter | Type | Description |
---|---|---|
| string | Symbol of the market. Supported multiple markets. Use "," to separate markets. |
| string | Smart contract address for the market. |
| number | See |
| number | 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). |
Example:
Last updated