Hi Team,
We’ve been experiencing frequent issues with the Margin Calculator API (/v2/margincalculator), specifically repeated DH-905 errors with very generic messaging.
We want to highlight that we have invested significant time and effort building systems around Dhan’s APIs, including integrating margin checks into our trading workflows. However, the current error handling makes it extremely difficult to debug and maintain reliability.
The error:
DH-905: Missing required fields, bad values for parameters etc.
This message is too generic and does not provide any actionable insight into what exactly is wrong in the request. Without field-level validation details, it becomes a trial-and-error process, which is not practical for production systems.
We request the following:
-
More detailed, field-level validation errors (e.g., which parameter is missing or invalid)
-
Confirmation that the API strictly adheres to the documented schema
-
Stable and predictable behavior for margin calculation responses
If these issues persist, it becomes very difficult for us to continue relying on the API, and we may have to consider moving away despite the effort already invested.
We hope you understand the seriousness of this from a developer and system reliability standpoint, and we look forward to improvements.
Thanks.