Iβm trying to place an order using dhan python library:
dhan.place_order(security_id='35498',
exchange_segment=dhan.NSE_FNO,
transaction_type=dhan.BUY,
quantity=50,
order_type=dhan.MARKET,
product_type=dhan.INTRA,
price=0)
I keep getting the following error:
{'status': 'failure',
'remarks': {'error_code': 'RS-9005', 'message': ' todo mandatory fields '},
'data': ''}
Please help.
Can I get some help with please? This basic functionality is not working and the error message isnβt helpful at all!
Hardik
3
Hello @anamika
Welcomet to Dhan Community! Excited to know you are exploring Dhan APIs for your trading.
Looks like you are trying to place order for Bank Nifty, which has a lot size of 15. So you need to enter quantity as 15 or in multiples of 15.
We are working on improving the error messages meanwhile.
1 Like