Building OCO orders on Zerodha Kite with a Python watcher
Regular Kite orders have no one-cancels-other, so a stop and a target placed together can leave you in a fresh position the other way. Here is the small Python watcher I run to cancel or shrink the surviving leg.