Kotak-Neo / kotak-neo-api

100 stars 86 forks source link

Error during order placement: {'stat': 'Not_Ok', 'stCode': 5202, 'errMsg': 'Error: Invalid Request'} #55

Closed mshh9 closed 10 months ago

mshh9 commented 10 months ago

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'}

mshh9 commented 10 months ago

disclosed_quantity="" - this has to be disclosed_quantity="0" and it works. closing the issue

dsp1589 commented 4 months ago

were you able to create order successfully?