I currently have a subscription for the DATA API with you. I am writing to clarify two important points before I proceed:
Order Execution: Does my current ‘Data API’ subscription include the capability to programmatically place Buy/Sell orders (using functions like order_placement), or is it restricted to fetching market data only? If it is restricted, how do I enable Trading permissions?
Compliance: I plan to use this for my personal trading account only. Could you confirm if your library handles the mandatory Static IP requirements, or do I need to configure a specific Static IP on my broker’s portal to remain SEBI compliant?
I want to ensure I am fully compliant with SEBI guidelines while using your tools.
You don’t need a Data API subscription for placing orders. Trading APIs are completely free and you can place Buy/Sell orders programmatically without any additional setup. The Data API subscription is only needed if you want access to live market data. You can check out the order placement modules in our documentation whenever needed.
About the Static IP requirement - As per the updated SEBI guidelines, it is not mandatory at the moment. The compliance timeline has been extended, and it will only become mandatory from January 2026. If you would still like to configure a Static IP, you can simply log in to web.dhan.co > Profile > Access DhanHQ APIs > Static IP Settings.
Can I use DATA API and TRADING API together to place buy/ sell programmatically (Algo Trading ) Without Human interfere which comes under compliance SEBI rules and regulations ?
At our end, we offer continuous futures, so you can directly work with near-month contracts and mention the required back date to retrieve the data you need. You may refer to the Historical APIs for complete details: Historical Data - DhanHQ Ver 2.0 / API Document
hi @Shubham_Singh,
thanks for letting me know.
so i cannot retrive previous year’s or two years back continuous futures like banknifty futures near month data of 1 minute timeframe which are expired ones? as i tried using the recent security_id of futures and tried given way back dates , past data beyond year/ qurter is not availblae using “/api.dhan.co/v2/charts/intraday”
is there a way to get those data?