Testing Environment for Dhan APIs

Dear All,
I am a beginner in algo trading. I wanted to check if there is any testing env. which we can use to test our program built on Dhan API, instead of placing order programmatically in real time. As, someone who is developing and testing the program will be running the same multiple times to test/debug… Also, it would be great. If someone can share the relevant study material to get started with algo trading, I see lot of stuff online, any specific pointers will help.
Thank you , looking forward for your support.

Monica

Hi Monica,

We have created a tutorial series on Dhan APIs, you can watch it here - https://youtu.be/IFqiCiRUtT4?si=bVsui9Q45Vbpe7K0

1 Like

you never get regular profit this api .trading is art . strategy ke sath khud se apply kejey

1 Like

Hello Monica , You may just do simulate entry while your condition is met, apply stop loss, and print profit and loss programmatically. Without placing orders to dhan API.

  • Condition met - Print: “Entry done in X position”

  • If stop loss hit - Print: “Stop loss hit, position exited”

  • If target hit - Print: “Target hit, position exited”

  • Print: “X position profit”

  • Print: “X position loss”

Hope this could be help you

2 Likes

Thank you for your response

Thank you!