dhan-oss / DhanHQ-py

The official Python client for communicating with the Dhan API.
MIT License
60 stars 25 forks source link

Error while placing an order through API #27

Closed Spongy01 closed 2 weeks ago

Spongy01 commented 4 months ago

I am trying to place orders using the dhanhq api but I am getting this error everytime:

{'status': 'failure', 'remarks': {'error_code': 'RS-9005', 'message': 'Transactions Fails.'}, 'data': ''}

Any leads on how to resolve these errors as I was not able to find any error code documentation which explained which error code meant what exactly.

dhan-oss commented 2 months ago

Hey @Spongy01

Can you please add the data that you are adding inside the function? This error usually happens when the Security ID is invalid or quantity is not in multiple of lots.

Meanwhile, we are also updating error codes at our end.

dhan-oss commented 2 weeks ago

Hello @Spongy01

We have updated error codes and created category to make it easier for you to track. You can find more details here: Error Codes