Introducing - DhanHQ Sandbox and DevPortal for API based Traders & Builders!

Hello Everyone,

DhanHQ APIs have been an important part of Dhan and building the trading ecosystem. The same APIs that power the experience loved by over a million Dhan users are available to you through DhanHQ Trading APIs.

Over 80 partners have built on top of the DhanHQ API, with more than 10,000 individual users creating their own trading setups directly using our APIs. As you know, DhanHQ API based traders contribute ~3% of all trades that go through our trading platform.

DhanHQ Trading APIs run on top of our in-house trading platform - DEXT which brings to you extremely fast speed of execution along with reliability and seamless ability to integrate and trade. Over a period of time, we have introduced many innovating and core features over DhanHQ APIs including that of Super Orders, MTF, Iceberg Orders, Kill Switch, etc - and also went ahead to introduce 20-depth data for the first time in India on our Data APIs.

APIs have always been a developer-first product, and this is why it is built ā€œBy Developers, For Developers.ā€ Following this path requires an approach wherein we interact directly and constantly with developers, seeking feedback on the structure, design, speed, and other aspects of the API. The end objective is to make it simple enough for a beginner developer to integrate, yet customisable enough for specialised algo traders to optimise their trading strategies down to the last parameter.

For any API, the documentation itself is the core of the product. As you all know we believe in delivering through our products.This is why, there is a great emphasis on keeping the documentation clean and minimal yet resourceful. We went a step further and built a one-of-a-kind API Playground (api.dhan.co/v2/#), which has been part of DhanHQ since its launch. This is a place that developers love, allowing them to test APIs without adding them to their Postman or writing a single line of code.

Building for developers, we realised that they always like to test things out first before making the shift. This is why, with API Playground, we provide developers with that flexibility. Additionally, this Playground has helped developers generate code in any language of their choice. But here’s the catch: to use the DhanHQ API Playground, a developer must have a Dhan demat account, meaning they need to complete KYC and open a Demat account with us. We wanted to open this up even further.

Introducing: DhanHQ Sandbox and DevPortal for API based Traders & Builders

DhanHQ Sandbox is one-of-a-kind, allowing you to test all DhanHQ APIs without even having a Dhan account. It is a place for you to play around freely, with the exact same structure as Live APIs, without placing any actual orders in your account or the exchange.

This enables you to perform integration tests in a closed environment, testing your entire journey without needing to go through the KYC process, ensuring funds in your account, or paying for a data subscription. Moreover, with the API structure identical for both sandbox and live environments, shifting from testing to live usage requires only changing the base URL from sandbox.dhan.co to api.dhan.co.

The Sandbox includes both DhanHQ Trading APIs and Data APIs, which you can use to fetch data, place orders, manage positions, and integrate with nearly all DhanHQ APIs. This works exactly like DhanHQ APIs—the same API stack that powers 90+ platforms today. We believe this will further encourage users to build products and develop the ecosystem. For algo traders, this provides the perfect way to test their algos—understanding how trades and positions are managed and gaining confidence in the execution of their orders.

We are also announcing DevPortal, a one-stop place for all your API needs, whether generating a token for the Sandbox or managing your live account credentials. We have planned a range of exciting features coming soon to the Portal.

DevPortal is designed specifically for developers. We aim to make developer.dhanhq.co the go-to place for any developer who wants to build for the markets. It will cater to anyone building for themselves, for a hundred users, or thousands. DevPortal will continually evolve for developers’ comfort, allowing DhanHQ access to be managed end-to-end.

With DhanHQ, we continue building with the community to open market access for anyone creating anything. Do share your feedback with us on how we can improve this further.

Happy Trading with Coding!
Hardik

11 Likes

@Hardik, thanks that’s great news! Thanks for taking this on the priority.

One more suggestion. I don’t frequently visit this community portal for feature announcements or updates. I think you must have subscription mechanism to get notification on Whatsapp (probably) or telegram so that we don’t miss something that you announced. We might have option what kind of announcement we want like API, portals related or new tools etc. This would help people catch things as you announce. Why I’m suggesting this because last time when you made announcement for API version upgrade. I get to know after few months. Please have a proper announcement channel also.

Season 2 GIF by The Roku Channel

Hi Team Dhan,

Congratulations on the launch of the DhanHQ Sandbox and Developer Portal – this is truly a first-of-its-kind initiative in the Indian trading ecosystem! Your continued focus on empowering traders and developers is inspiring and sets a new benchmark for innovation in API-based trading.

We at OpenAlgo are excited about this development. Would love to explore if we can integrate the sandbox environment into OpenAlgo to offer our users a safe and powerful testing facility. It could be a great value-add for the algo trading community.

Looking forward to hearing your thoughts and possibly collaborating on this!

Warm regards,
Rajandran R

Thanks @marketcalls you have been very supportive of our journey from our early days when we practically did not exist. Definately look forward to collaborate with you :slight_smile: