Exception "Invalid condition params" for modify_gtt()

prasad_b
I wanted to updated my existing GTT order with following code. But on execution it fails with above exception.
Not sure what exactly going wrong with following implementation. Can anyone point if I am doing anything wrong here..!!


order_single = [{
"transaction_type": kite.TRANSACTION_TYPE_SELL,
"quantity": QuantityToBuy,
"order_type": "LIMIT",
"product": "NRML",
"price": GTT_SLLimitPrice
}]

kite.modify_gtt(trigger_id=currentGttID, trigger_type = kite.GTT_TYPE_SINGLE,
tradingsymbol = StrikePriceNomenclature, exchange=kite.EXCHANGE_NFO,
trigger_values=[GTT_NewSLTriggerPrice], last_price = StrikePriceLastPrice,
orders=order_single)

Sign In or Register to comment.