result = kite.place_order(variety='bo', order_type='LIMIT', product='MIS', exchange='NSE',
transaction_type='SELL',tradingsymbol=trading_symbol, price=sell_price, stoploss=stop_loss_point, quantity=quantity, squareoff=target_point)
SHORT ORDER PLACED FOR : TATAMOTORS
Process finished with exit code 0
There are two issues:
1. How multiple orders are placed by calling place_order() just once. I verified with my logs that the program exited as soon as the order was placed. I tried again by placing more traces and confirmed that place_order() was executed just once.
2. The second issue as I pointed with my order page the screen shot above is, even after the program terminated after about 10 mins, when the the same price triggered for which I placed my initial BO order, orders are executed again. It seems like whenever that price is triggered, the order will be placed throughout the day (as per the behavior)