It looks like you're new here. If you want to get involved, click one of these buttons!
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)
print(result)
exit(0)
Logs:
SHORT ORDER PLACED FOR : TATAMOTORS
190509000818083
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)