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

Ok.

Hello @Dharmender Ji, can you guide me or help how can I mock test my algo on Sandbox or Devportel? I am beginner for this.
Thanks.

how do we overide the base url ? this is set in dhanhq.py library file, changing that is not a good idea.

init of that only takes client id and access token as a input, is there a cleaner way ?
@Hardik

@Hardik could you please confirm if the APIs here are executing orders with real time data or via a dummy mechanism to mimic trading?

It’ll be great if its based on real time data but it’s not mentioned anywhere

@Arun86 could you please confirm if the APIs here are executing orders with real time data or via a dummy mechanism to mimic trading?

Asking because for HDFCBANK - stock split happened and price is around 970 now but API insists that we provide price around 1700 - 1900 range i.e circuit range

@Hardik I’ve placed a buy order for KOTABANK when price was around 2023, placed at 2022, 2023, 2024 and none of the orders got executed - waited for 5 mins

Not sure if this is a bug or not but please fix it or be clear in documentation on expected behaviour on sandbox APIs. It’s a really great product - sandbox paper trading APIs but it should work as well

I was amazed to see APIs but now little disappointed
Sharing the orderId’s for your team to debug :
712509162101, 712509162091, 712509162081

Sandbox client id : 2509105452

you can check the creation timestamp and cross verify KOTAKBANK price around that time

Hoping for a quick robust fix, thanks!

@Hardik is this sandbox will work for websockets also for testing ?

why sandbox is not working on saturaday

@hardik any issue with Dev portal ? Not able to login.

Hello @t7support

Just checked, it is working fine. Can you check once in incognito or a new tab?

Working now in normal tab only. Earlier clicking on the “Proceed to Next“ button was having no effect. Tried with two different phone numbers of mine which are linked to different dhan accounts.

Alright, will look into logs if there was some intermittent error in the same.

1 Like