Hi I am getting the following error : ERROR:websocket:error from callback -bound method WebSocket._on_data of -kiteconnect.WebSocket object at 0x0000017F23A57208 --: An internal server error occurred
What could be causing that? I included only SBIN and PNB in my token list. I am using a function to check the conditions precedent for placing the order. To know that the conditions have been met i am getting the message printed as well. But thereafter the error appears. This is the order placement statement : place_order("BUY",AllInOne[token][9],AllInOne[token][10],AllInOne[token][11]); where AllInOne is a dictionary with tokens as key. And this is the function definition: def place_order(transaction_type,tradingsymbol,exchange,quantity,order_type="MARKET", product="NRML"): ord_id = kite.order_place(transaction_type,tradingsymbol,exchange,quantity, order_type="MARKET", product="NRML") print(ord_id,tradingsymbol,quantity)
@Vivek I tried few changes and kept trying and finally could place a market order( on 29thDec ). But is there any problem today in kiteconnect or web socket?
transaction_type
as MCX andexchange
as SELL.