I’m encountering an error, “DH-906,” when attempting to fetch the current orders list. I tested this on the sandbox, where I only needed to input the access token. I’ve attached a screenshot of the sandbox testing for your reference. Could you kindly assist in identifying the cause of this error and guide me on how to resolve it?
Hello @Hardik ,
As per your suggestion, I attempted to use the provided API documentation to fetch all order details. However, the unfortunate reality is that it is not functioning, even within the sandbox environment provided by Dhan.
Additionally, I’d like to point out that version 2 of the order API is exhibiting inconsistent behavior—frequently returning errors such as 404 or 429. While sometimes reattempting the request resolves the issue, this inconsistency is severely impacting my trading setup.
Can you please investigate or clarify where things are going wrong? This issue needs prompt resolution.
Hi @aditya3,
It was my misunderstanding.
I checked the Sandbox and tested it again. The reason you are seeing a 404 or DH-905 error is that the “Get Current Order List” retrieves all orders requested on a trading day. Since no trades have been executed, the system returns no results. I will try again on a trading day.
It seems the Sandbox is functioning correctly and is accurately mimicking the API’s behavior.
If you’ve placed any orders on the Dhan platform before, you can use the “Get Trade History” endpoint to retrieve the results.