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.