Hello, I’m currently working on a project that requires real-time access to the Option chain data using Dhan API, and I could use some guidance and insights from those who have experience with it. Here are a couple of questions I have:
How can I access real-time Option chain data using Dhan API? Are there specific endpoints or methods I should be aware of to retrieve this information?
What are the prerequisites for integrating Dhan API into my trading application to access Option chain data in real-time? Do I need any special permissions or subscriptions?
Why do you personally find it beneficial to access real-time Option chain data from Dhan API or similar sources? What advantages does it offer in terms of trading strategies, risk management, or any other aspects?
Are there any specific challenges or considerations I should be aware of when working with real-time data from Dhan API, such as handling data updates, latency, or reliability?
The short answer - real time data is not yet available with Dhan. Once they bring out the market feed api (hopefully soon) then your questions can be answered.
I had created a code which will check banknifty ( or nifty) index value and fetch security ids of chosen strike price gaps for me without the need to access option chain. Yes, getting ‘LIVE’ optionschain data directly is still unknown for me.
No. We have beta launched our Live Market Feed. As mentioned by @joker-w, you can easily get almost all Option Chain data directly from Feed data itself.
marketfeed.DhanFeed is a class. On the error part, there is a mistake in the pypi documentation. You can refer GitHub documentation for updated test code - here.
Similar to how you subscribe equity instruments over websockets, you can subscribe to option contracts as well. You will be getting price, depth, volume and OI data for the options over websockets.
Welcome to Dhan Community! Excited to know that you are exploring Dhan APIs.
No, option chain data is directly not available on Dhan APIs or Market Feed. However, you can calculate greeks using the data that you receive on Market Feed.
that will be great!! Any estimated time!!. I’m a new learner so how does people use your data api display option chain in their website. I’m trying to pull all the derivatives from and store in list and on clicking the scrip show the realtime price!