I am getting this error while placing an order. I am able to login and get the scrip name but having issue while placing order.
Here is the line of code
client.place_order(exchange_segment="nse_fo", product="NRML", price="", order_type="MKT", quantity="15",\
validity="DAY",\
trading_symbol="BANKNIFTY2391345000PE",\
transaction_type="B", amo="NO", disclosed_quantity="", market_protection="0", pf="N",\
trigger_price="", tag="Try")
This is the response
Out[34]: {'stat': 'Not_Ok', 'stCode': 5202, 'errMsg': 'Error: Invalid Request'}
I am getting this error while placing an order. I am able to login and get the scrip name but having issue while placing order. Here is the line of code client.place_order(exchange_segment="nse_fo", product="NRML", price="", order_type="MKT", quantity="15",\ validity="DAY",\ trading_symbol="BANKNIFTY2391345000PE",\ transaction_type="B", amo="NO", disclosed_quantity="", market_protection="0", pf="N",\ trigger_price="", tag="Try") This is the response Out[34]: {'stat': 'Not_Ok', 'stCode': 5202, 'errMsg': 'Error: Invalid Request'}