Kush
September 30, 2025, 11:56am
1
Hey Dhan team.
After the authentication changes to use API, I modified the algo with latest changes, but now I am not able to place any order via api.
I am subscribed to the order feed, and it works as expected, but the moment I place an order, I am getting error.
res = dhan_api.place_order(security_id="60442", exchange_segment="NSE_FNO", transaction_type="SELL",
quantity=75, order_type="STOP_LOSS", product_type="INTRADAY", price=3, trigger_price=3.1 )
{‘status’: ‘failure’, ‘remarks’: {‘error_code’: ‘DH-905’, ‘error_type’: ‘Input_Exception’, ‘error_message’: ‘Missing required fields, bad values for parameters etc.’}, ‘data’: ‘’}
same code used to work before, not sure what to do here
Hardik
September 30, 2025, 12:28pm
2
Hey @Kush
Can you confirm with the timestamp when did you get this error last?
Kush
September 30, 2025, 1:01pm
3
@Hardik pretty much the entire day
I am subscribed to order feed, when i buy an option, i get the order details. Using those details I place 2 stop loss orders of half qty of buy order each.
sometimes one of the orders was being placed, and sometimes none
[2025-09-30 11:07:27] one of those timestamps
Hardik
October 1, 2025, 4:02am
4
Hey @Kush
Can you monitor this for today as well? This shouldn’t be happening now. We are also actively monitoring logs at our end.
Kush
October 1, 2025, 4:09am
5
@Hardik
I bought 25800 CE today, single lot and placed SL order using api.
Order got placed. but api is still returning wrong response
{‘status’: ‘failure’, ‘remarks’: {‘error_code’: ‘DH-905’, ‘error_type’: ‘Input_Exception’, ‘error_message’: ‘Missing required fields, bad values for parameters etc.’}, ‘data’: ‘’}
res = dhan_api.place_order(security_id=“38430”,
exchange_segment=dhan_api.NSE_FNO, transaction_type=dhan_api.SELL,
quantity=75, order_type=dhan_api.SL, product_type=dhan_api.INTRA, price=1.5, trigger_price=1.55)
Hardik
October 1, 2025, 4:16am
6
Hey @Kush
Can you share your Client ID over DM, will get it checked.
Kush
October 1, 2025, 4:26am
7
@Hardik not sure how to dm, can you dm me instead
I too hit this issue today with new auth changes.
2025-10-01 09:37:28,770 341 INFO: {‘status’: ‘failure’, ‘remarks’: {‘error_code’: ‘DH-905’, ‘error_type’: ‘Input_Exception’, ‘error_message’: ‘Missing required fields, bad values for parameters etc.’}, ‘data’: {‘errorType’: ‘Input_Exception’, ‘errorCode’: ‘DH-905’, ‘errorMessage’: ‘Missing required fields, bad values for parameters etc.’}}
Kush
October 1, 2025, 9:15am
9
@Hardik any update, not sure how to dm you
this is really important
Hardik
October 1, 2025, 10:55am
10
Hey @Kush
Are you using API key based token or normal access token generated from web?
Hardik
October 10, 2025, 5:22am
12
Hey @Kush
This was resolved last week itself, post your feedback. You should be able to use it seamlessly now.