Skip to Content

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_flag to 1 to get open, high, low, close and volume in the response.
  • bids and ask are arrays with price, volume and number of orders for each level. totalbuyqty and totalsellqty give the totals.
  • oiflag is a true or false flag for open-interest data. The OI fields are oi, pdoi (previous day) and oipercent.
  • lower_ckt and upper_ckt give the circuit limits. ltp, ltq and ltt give the last traded price, quantity and time.
  • Rate limits differ between the Standard and Prime plans. See Plans & rate limits.

Request Attributes

AttributeData TypeDescription
symbol*stringMaximum symbol limit is 1. Eg: NSE:SBIN-EQ
ohlcv_flag*intSet the ohlcv_flag to 1 to get open, high, low, closing and volume quantity'

Response Attributes

AttributeData TypeDescription
sstringok / error
codeintThis is the code to identify specific responses
totalbuyqtyintTotal buying quantity
totalsellqtyintTotal selling quantity
bidsarrayBidding price along with volume and total number of orders
askarrayOffer price with volume and total number of orders
ofloatPrice at market opening time
hfloatHighest price for the day
ifloatLowest price for the day
cfloatPrice at the of market closing
chpfloatPercentage of change between the current value and the previous day's market close
tick_SizefloatMinimum price multiplier
chfloatChange value
ltqintLast traded quantity
lttintLast traded time
ltpfloatLast traded price
vintVolume traded
atpfloatAverage traded price
lower_cktfloatLower circuit price
upper_cktfloatupper circuit price
expirystringExpiry date
oifloatOpen interest
oiflagbooleanBoolean flag for OI data, true or false
pdoiintprevious day open interest
oipercentfloatChange in open Interest percentage
Last updated on