But, I used my BSE FNO security id as below
order=dhan.place_order(security_id=‘1119289’,
exchange_segment=dhan.BSE_FNO,
transaction_type=dhan.BUY,
quantity=1,
order_type=dhan.MARKET,
product_type=dhan.INTRA,
price=0,)
print(order)
I am getting following error
{‘status’: ‘failure’, ‘remarks’: {‘error_code’: ‘RS-9005’, ‘message’: ’ todo mandatory fields '}, ‘data’: ‘’}
@Sai_Chandra Actually, I’d used quality 1 lot and price 0 as per market order. It worked fine with MCX Crudeoil 1 lot order.
Are you suggesting to use actual quantity multiplying with lot size?
@Naman
As suggested, I used the code as below
order=dhan.place_order(security_id=‘1119289’,
exchange_segment=dhan.FNO,
transaction_type=dhan.BUY,
quantity=1,
order_type=dhan.MARKET,
product_type=dhan.INTRA,
price=0,)
Getting this message
{‘status’: ‘failure’, ‘remarks’: {‘error_code’: ‘RS-9005’, ‘message’: ‘Transactions Fails.’}, ‘data’: ‘’}