API

How to place order using API token access?
Once you have generated access token, you can either write your own code to build your strategy and place orders. You can use any programming language and u...
Tue, 6 Feb, 2024 at 6:44 PM
Where can I check my access to DhanHQ APIs ?
You can check your API access status from web.dhan.co > My Profile > DhanHQ Trading APIs section. Over here, you can check your generated access toke...
Tue, 6 Feb, 2024 at 6:44 PM
Are there any additional charges for trading through Dhan API?
No, Dhan doesn’t charge any extra charges for APIs.
Sun, 11 Sep, 2022 at 6:33 PM
If 25 trades are placed on the same day, does that qualify for Data API access?
Yes, as long as there are 25 successfully executed trades, it qualifies for API access. But user will get the option to access these API on the next day.
Sun, 11 Sep, 2022 at 6:35 PM
What is the maximum validity of API Access Token?
While you are generating the API access token, you may decide the validity of the access token you generate, it could be anything from 8 hours to 30 days, d...
Tue, 6 Feb, 2024 at 6:45 PM
Can I place a Basket order using Dhan APIs?
There is no direct API available for Basket Orders. However, you can easily create baskets at your end by creating it in your system and placing orders via ...
Tue, 6 Feb, 2024 at 6:46 PM
What are the API limits per second in Dhan ?
DhanHQ APIs do have Rate Limits which cap maximum requests per second. However, these are the most liberal rate limits in the industry, with 20 requests/sec...
Tue, 6 Feb, 2024 at 6:47 PM
What timeframe data can I get from Historical Data APIs ?
For Intraday Historical data, you can get 1 min data of OHLC & volume only for the current day. If you to need data for a different time frame (e.g. 3 m...
Tue, 6 Feb, 2024 at 6:47 PM
Is Historical Data from Data API adjusted for corporate actions like bonus or split ?
Yes, the Daily Historical data available via API is adjusted for corporate actions.
Tue, 6 Feb, 2024 at 6:49 PM
Is Data APIs available for all exchanges and segments ?
Yes, Data APIs are available for all exchanges and segments on Dhan. This includes Live Market Feed, Intraday Data and Historical Daily Data. You may visit...
Tue, 6 Feb, 2024 at 6:50 PM