Data API for placing order buy/sell -as per SEBI guidelines

Hello @Tradehull_Imran @Tradehull_Priya @Tradehull_sathesh , @Hardik @RahulDeshpande

I currently have a subscription for the DATA API with you. I am writing to clarify two important points before I proceed:

  1. 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?

  2. 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.

Thank you

Hi @raj001 ,

  1. 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.

  2. 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.

Hello @Tradehull_Imran @Tradehull_Priya @Tradehull_sathesh @Hardik @RahulDeshpande @Shubham_Singh

Thank you for your valuable reply

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 ?

Thank you

Hi @raj001

Yes, you can create your own algo setup using the Trading & Data APIs, and it will be capable of placing orders as per your logic.

hi, @Shubham_Singh
is there any endpoint or ways to get expired futures/ continuous futures data of index or stocks timeframe 1 minute level?

Hi @raju7

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?