Introducing: Full Market Depth for Futures, Options and Cash Segment on Dhan

Hello Traders,

With Dhan, we have introduced many features, products and capabilities that enhance the overall trading experience for Super Traders in India.

Dhan’s list of innovations over our journey of 3 years are many. To list down a few - Charts Data in Seconds, Scalper on Charts, Flash Trade, Trader Controls, Power Trade Mode and extending the same with our Trading APIs with launch of Kill Switch, Iceberg on APIs and also the recently introduced 20-Depth Market Data on DhanHQ Trading APIs.

Having said that, through our multiple interactions with the trader community; it always felt that the Indian trading ecosystem has always skewed information edge towards institutional traders.

Traders have always looked for alternative sources of data to build their models or to try to read the markets. This, at times, has made markets difficult to navigate for Indian traders. When people look at markets, they look at prices. Whether that be in their portfolio, watchlists or on charts. This price is the LTP or Last Traded Price. But it will be wrong to say that this is the price available in the market.

LTP is the price on which the last trade happened in the market. To see the best possible price that you can get, you need to look at the best bid/ask available on that scrip at any time. But if someone is looking to place orders for bigger quantities or trying to see how the order book is looking, they head to the Market Depth.

Almost all broking and trading platforms usually show only 5-level market depth. This means the 5 best possible bids/ask for any instrument. However, looking at this data does not show the entire market picture, and often levels beyond these 5 price levels have large order build-ups which affect the direction of the market.

This is why we recently introduced a 20-level market depth on Dhan Charting platform (tv.dhan.co). This gives access to market movements like never before - wherein you can track all major order levels beyond 5 - level. This was a big move and advantage as no other platform provides Level 3 data or 20 level market depth for both equity and derivative segments. Recently, we also introduced this same data on APIs - 20-Depth Market Data on DhanHQ Data APIs - making our existing APIs even more powerful.

When we were building this, we started the work on the exchange order book as well. We started consuming the entire order book of all equity and derivative instruments on NSE and observed patterns in depth which can be useful for traders to analyse and build insights upon. In our pursuit in bridging the knowledge gap between institutional and retail traders, we are taking a further step in this direction by opening up the entire order book.

Introducing: Full Market Depth for Equity, Options and Futures on Dhan TradingView Charts

This newer capability gives a wide range of data on your trading window, which can help you view the entire order book of any instrument. You can find out all levels of high order volumes and visualise it as an order flow.

Looking into the tech that went behind this. For every tick that we receive for a single instrument, it includes 1000s of rows of order data that needs to be cleaned up and stored in sequential order to form the depth. This data is then streamed over websockets to your Dhan platform. The processing required for each instrument consumes high bandwidth on both server and the user’s device. On server, we do this for all NSE listed equities and all active futures & options contracts. This means processing millions of rows of data each second and streaming it in milliseconds. Also, the rate of update of order books exceeds snapshot or tick-by-tick data (which is the trade data).

To deliver this, we had to go back to the drawing board, optimise matching algorithms down to microseconds for each order update on the order book and then do this hundred and thousand times again to deliver the full market depth.

Note: Full Market Depth is currently available only for NSE Equity & Derivatives. We are streaming 200 level data as of now, since this covers broadly all market depth.

Analysing entire market depth data might be difficult to comprehend at first, but once you start observing the trends on the same, you definitely get build-up visualisation right on top of charts.

As always, we are building Dhan with your feedback, reinventing trader experience for better. We would love to hear your thoughts on how you will be using this and what next we should build.

Happy Trading!
– Hardik

20 Likes

@trust_level_0 hello community, excited to share this latest feature with you all! Do share your thoughts on this!

2 Likes

Appreciable & Welcome move ! :heart:

1 Like

Good feature. Hope this won’t slow down the platform or user experience :slight_smile:

1 Like

We care a lot for the performance @ValueInvestor0 :slight_smile: Good to see our users to appreciating this :slight_smile:

1 Like

Incredible :heart:

This is crazy. Now this is what I call an innovation. If you provide this data through an API this would be a game changer! I would be willing to pay for this setup. Maybe setup a colocated server at NSE or a server at Dhan’s premises (cheaper option, but viable) which is connected to NSE through leased lines. This could be commercialized as a premium service. I am willing to discuss numbers right away if you guys plan to provide this through APIs.

2 Likes

Expanding on this, I feel after a point, number of updates (ticks) becomes more informative than the number of levels. So if you guys can maybe increase the number of ticks to the maximum potential, that would be another potential premium offfering. I know this may be a tall ask, but the way you guys have been introducing such new game-changing features, this can be one of the future directions you can focus on.

1 Like

Hello @shraddha jee , I am very excited for this feature since a long time and currently using external software for market depth

20 level market depth is a great step but adjustment facility of tick size or increase in tick size would be an excellent initiative and useful for us .

Kindly consider if feasible

Love for @Dhan :heart::heart:

1 Like

Hello @tradernoob @DebadattaMahakud

Yes, right now for full market depth, we are using the entire order book and trade book data. This means all changes to price are available on the system. However, streaming all the packets in real-time is not feasible, due to sheer data volume and each packet size.

Currently, the number of tick updates are already on the higher side, that we deliver on Dhan, compared to industry standards.

2 Likes

@Hardik

Agreed, so are there any plans to provide this data through an API (maybe a premium offering)? (Since the existing 20 depth API is throttled and the tick updates are not as high as the chart ones)

Hello @tradernoob

Currently, the updates on 20-depth available on websockets is at the same rate as the updates that you see on charts. On full depth being available on API, that is not in our plans yet.

We will be monitoring the performance over charts before considering offering it via direct websockets.

1 Like

Awesome feature! game-changer

2 Likes

Hi@ Imran sir,
Please provide an algorithm code that will implement both a Call Buy strategy and a Put Buy strategy simultaneously. When a Call Buy signal is received, the algorithm should execute a call buy, and when a Put Buy signal is received, it should execute a put buy and simultaneously SL, TG, will work and both will work in intraday."…pls.big brother do not disappoint, help me to make this strategy…i am waiting since 4 month.

When this will be available on mobile application? Any plans ?
@Hardik

Hello @Chiru

It will take a while for us to bring this data to mobile application, as the bandwidth utilisation for this is high and might lead to laggy experience. But we will definitely bring insights from this full market depth to Dhan App soon.

@PravinJ sir please make this full market depth available for sensex options too on tv.dhan

Currently, BSE only provides Level 3 data or 20-level depth data. This is why we have enabled Full market depth only for NSE instruments.