Thanks @R.E.M, i missed creating that object. that issue resolved now.
Also @Dhan , @Hardik , im still getting the following error when trying to place a FnO order
{‘status’: ‘failure’, ‘remarks’: {‘error_code’: ‘RS-9005’, ‘message’: ’ todo mandatory fields '}, ‘data’: ‘’}
Can you confirm if you are passing correct quantity? On Order Placement API, we will have to pass quantity as multiple of lots. For e.g. BankNifty will require Quantity as 15 or multiples of 15.
Hardik
I have sent multiple email about the above error.
I have tried setting the quantity=15 its not working
also tried modifying exchange_segment to dhan.FNO vs dhan.NSE_FNO still not working
and get the same error message above. Sent multiple mails and desperately waiting for a response. Please help.
Sai
The team will be reaching out to you to set up a call with us. Will try to get this resolved there, as it is difficult to debug without actual execution code.
Nifty itself is not tradeable. You can either buy Nifty Futures or Options or you can even buy ETFs via API. Security ID of any instrument can be fetched from the Security ID List itself.