Market Depth
This API allows you to get the market depth (bid and ask levels) for a symbol.
USE CASE
Check how much liquidity sits at each bid and ask level before you size an order.
Note
Live Streaming — Stream live market-depth updates through the Data Socket. View Data Socket - Depth Update documentation.
Details
- The Market Depth API returns the complete market data of the symbol provided. It will include the quantity, OHLC values, and Open Interest fields, and bid/ask prices.
- Your app needs the Market Data permission. Market Depth is part of that permission template.
- Request one symbol at a time (the maximum is 1), for example
NSE:SBIN-EQ. Make a separate request for each additional symbol. - Set
ohlcv_flagto 1 to get open, high, low, close and volume in the response. bidsandaskare arrays with price, volume and number of orders for each level.totalbuyqtyandtotalsellqtygive the totals.oiflagis a true or false flag for open-interest data. The OI fields areoi,pdoi(previous day) andoipercent.lower_cktandupper_cktgive the circuit limits.ltp,ltqandlttgive the last traded price, quantity and time.- Rate limits differ between the Standard and Prime plans. See Plans & rate limits.
Request Attributes
| Attribute | Data Type | Description |
|---|---|---|
symbol* | string | Maximum symbol limit is 1. Eg: NSE:SBIN-EQ |
ohlcv_flag* | int | Set the ohlcv_flag to 1 to get open, high, low, closing and volume quantity' |
Response Attributes
| Attribute | Data Type | Description |
|---|---|---|
s | string | ok / error |
code | int | This is the code to identify specific responses |
totalbuyqty | int | Total buying quantity |
totalsellqty | int | Total selling quantity |
bids | array | Bidding price along with volume and total number of orders |
ask | array | Offer price with volume and total number of orders |
o | float | Price at market opening time |
h | float | Highest price for the day |
i | float | Lowest price for the day |
c | float | Price at the of market closing |
chp | float | Percentage of change between the current value and the previous day's market close |
tick_Size | float | Minimum price multiplier |
ch | float | Change value |
ltq | int | Last traded quantity |
ltt | int | Last traded time |
ltp | float | Last traded price |
v | int | Volume traded |
atp | float | Average traded price |
lower_ckt | float | Lower circuit price |
upper_ckt | float | upper circuit price |
expiry | string | Expiry date |
oi | float | Open interest |
oiflag | boolean | Boolean flag for OI data, true or false |
pdoi | int | previous day open interest |
oipercent | float | Change in open Interest percentage |
Last updated on