Hi, I am using python API for new bracket order in option. It is showing successful completed and buy happens. But Stoploss and trailing stoploss is not working. while price goes up or down neither stop loss work nor square off work. Sell did not initiated automatically. I used below function: buy(): tradeorder = kite.order_place(tradingsymbol="Tickername", quantity=40, exchange="NFO", transaction_type="SELL", order_type="LIMIT", price="XXX.XX", squareoff_value="10", stoploss_value="2", trailing_stoploss="1", product="MIS")
@ Sujith, Thanks for your reply. I do not know what is order variety. Will you please help, how to pass it? can you confirm the complete parameter to pass while placing bracket order.
What is the order variety, you are passing?
Do you see second leg orders?
Check out examples here.