How can I place basket order?

keyurkankotiya
Hello everyone,
I want to place a basket order in Python, can anyone please help me with that?
I am trying this code kite.place_order(variety="regular", orders=order_params), but I am getting error like place_order() got an unexpected keyword argument 'orders'.

order_params = [
{'exchange': 'NFO', 'tradingsymbol': 'BANKNIFTY2431349200CE', 'transaction_type': 'BUY', 'variety': 'regular', 'product': 'MIS', 'order_type': 'MARKET', 'quantity': 135},{'exchange': 'NFO', 'tradingsymbol': 'BANKNIFTY2431346200PE', 'transaction_type': 'BUY', 'variety': 'regular', 'product': 'MIS', 'order_type': 'MARKET', 'quantity': 135}]

Thanks in advance.
  • sujith
    Basket orders are not available on Kite Connect. You need to create a queue or list at your end and place order in loop. You can know more about order placement APIs here.
  • keyurkankotiya
    Got it @sujith.
    Thank you bro.
This discussion has been closed.