Hello everyone,
Technology has always been at the forefront of our approach and philosophy to trading. With this idea, we have been building DhanHQ Trading APIs, to ensure the whole trading ecosystem can build and develop on top of our infrastructure and access all the capabilities we provide to our users, just via APIs.
From the start of this journey, we focused on getting execution speeds that institutions enjoy and rich data that can power your trading systems to make decisions effectively and in real-time.
Dhan took the first step in the industry to separate Trading APIs from Data APIs, making Trading APIs absolutely free and Data APIs were made available at an nominal price of INR 499 per month. We have introduced Option Chain on single API call, 20 level Market Depth on APIs and historical data for up to 5 years in different timeframes.
Now, we are further enhancing the Data API offering on DhanHQ. We are introducing data which will allow traders to build better systems, finding hidden opportunities and validate their strategies. And all this data will be available within the same Data API subscription at the same price.
Options Data on DhanHQ APIs
While we introduced Historical Data early on with APIs, we were always looking at how we can enhance the offering, to ensure it is seamless for all our users to fetch data and focus on building systems without worrying about combining different data sources. A feedback that we always got from the trading community was the unavailability of data for expired options contracts, especially to check historical data patterns and backtest option strategies.
This data is either not provided or comes at great cost, given the size of the data. In addition to this, the processing of this raw data requires a lot of time - including categorising, sorting and cleaning. While it is easier to offer the raw data, we have decided to take this a notch above, serving pre-processed data for you.
Introducing Rolling Options Data on DhanHQ, for expired options contract. The rolling option data includes option contracts for the last 5 years on APIs, which has open, high, low and close data along with volume and open interest added. Additionally, we are also adding implied volatility data on this. This is for the first time in industry, when detailed data is being made available on APIs.
This data is available based on underlying contract and strike (ATM based). This helps you to fetch data of any particular strike, across various time frames and expiries. You do not need to worry about the contract names of expiry contracts or expiration dates. With a single API call, you can now build your options trading system.
Full Market Depth on DhanHQ Websockets
We introduced 20 market depth earlier on websockets, streamed without a buffer. This data (usually referred to as Level 3 data) usually covers market depth beyond the usual 5 levels of depth. We are taking this beyond the 20 market depth.
Now, you will be able to get Full Market Depth directly streamed over websockets. This includes 200 levels of depth for any equity or derivative contract of NSE. When we introduced full market depth on charts, this was one of the highly requested features to be made available as part of DhanHQ. You can use this data for building systems, fetching almost the entire order book of the exchange. This data updates with every update on the order and trade book and is almost impossible to capture demand/supply regions manually. Using systems to analyse this data is the best way to find patterns and build trading strategy.
This level of extensive data has never been made available for the Indian trading ecosystem. As we look at the next journey of retail participation in algo trading, access to this data will help make systems better and provide the capability to analyse this data in real time for systems.
At Dhan, we are committed to make the best trading infrastructure available to all retail traders, ensuring they are equipped with the right data, tools, and systems. We would like to know what you would want to see next on DhanHQ, how we can make the journey of analysis and trade management easier for you on APIs.
– Hardik
Product

