Modify GTT gives exception

vishalgyadav
The GTT is gets placed and gets modified for the first time, but it gives an exception when I modify the GTT after the first modification, and it gives a null exception.
Following is the log for the same. Not able to trace the exception. Please provide the details exception for the trail
Replacing the order with higher trigger price
Trading Symbol : BANKNIFTY25SEP53800CE
Placing Order : {product=MIS, quantity=35, trigger_price=960.0, price=965.0, tradingsymbol=BANKNIFTY25SEP53800CE, exchange=NFO, validity=DAY, transaction_type=BUY, gtt_params=[[1,-5],[1,5]], order_type=SL, disclosed_quantity=0, market_protection=0.0}
Order Response : {"data":{"order_id":"250908100157509"},"status":"success"}
Order Update: 250908100157509 Status: TRIGGER PENDING
Order Update: 250908100157509 Status: OPEN
Order Update: 250908100157509 Status: COMPLETE
fullTradingSymbol: BANKNIFTY25SEP53800CE
token: com.zerodhatech.models.Instrument@239d1ad3
Placing GTT : {condition={"instrument_token":13984514,"tradingsymbol":"BANKNIFTY25SEP53800CE","trigger_values":[917,1013],"exchange":"NFO","last_price":965.15}, orders=[{"product":"MIS","quantity":35,"price":917,"tradingsymbol":"BANKNIFTY25SEP53800CE","exchange":"NFO","transaction_type":"SELL","order_type":"LIMIT"},{"product":"MIS","quantity":35,"price":1013,"tradingsymbol":"BANKNIFTY25SEP53800CE","exchange":"NFO","transaction_type":"SELL","order_type":"LIMIT"}], type=two-leg}
tokenList: [13984514]
gtt id: 286557925
GTT Placed: null
ltp : 979.0 Calculated trail price : 980.0
ltp : 980.0 Calculated trail price : 980.0
Inside percentage based trail
newStop Loss: 965.0 newTarget: 1024.0
Modify GTT Request : {condition={"instrument_token":13984514,"tradingsymbol":"BANKNIFTY53800CE","trigger_values":[965,1024],"exchange":"NFO","last_price":980}, orders=[{"product":"MIS","quantity":35,"price":965,"tradingsymbol":"BANKNIFTY53800CE","exchange":"NFO","transaction_type":"SELL","order_type":"SL"},{"product":"MIS","quantity":35,"price":1024,"tradingsymbol":"BANKNIFTY53800CE","exchange":"NFO","transaction_type":"SELL","order_type":"LIMIT"}], type=two-leg}
Modify GTT Response : {"data":{"trigger_id":286557925},"status":"success"}
Time : 09:30:46 After Modify GTT Stop Loss: 965.0 Target Price: 1024.0
gtt id: 286557925
ltp : 982.0 Calculated trail price : 1019.0
ltp : 982.0 Calculated trail price : 1019.0
ltp : 979.0 Calculated trail price : 1019.0
ltp : 1003.0 Calculated trail price : 1019.0
ltp : 1003.0 Calculated trail price : 1019.0
ltp : 1003.0 Calculated trail price : 1019.0
Trading Symbol : NIFTY2590924800CE
ltp : 1003.0 Calculated trail price : 1019.0
Placing Order : {product=MIS, quantity=75, trigger_price=88.0, price=90.0, tradingsymbol=NIFTY2590924800CE, exchange=NFO, validity=DAY, transaction_type=BUY, gtt_params=[[1,-5],[1,5]], order_type=SL, disclosed_quantity=0, market_protection=0.0}
GTT already placed. Skipping.
Order Response : {"data":{"order_id":"250908100173909"},"status":"success"}
ltp : 1006.6 Calculated trail price : 1019.0
ltp : 1006.6 Calculated trail price : 1019.0
ltp : 1006.6 Calculated trail price : 1019.0
ltp : 1011.3 Calculated trail price : 1019.0
ltp : 1011.3 Calculated trail price : 1019.0
Order Update: 250908100173909 Status: OPEN
Order Update: 250908100173909 Status: COMPLETE
fullTradingSymbol: NIFTY2590924800CE
token: com.zerodhatech.models.Instrument@23acc090
Placing GTT : {condition={"instrument_token":10388738,"tradingsymbol":"NIFTY2590924800CE","trigger_values":[79,101],"exchange":"NFO","last_price":87.95}, orders=[{"product":"MIS","quantity":75,"price":79,"tradingsymbol":"NIFTY2590924800CE","exchange":"NFO","transaction_type":"SELL","order_type":"LIMIT"},{"product":"MIS","quantity":75,"price":101,"tradingsymbol":"NIFTY2590924800CE","exchange":"NFO","transaction_type":"SELL","order_type":"LIMIT"}], type=two-leg}
tokenList: [10388738, 13984514]
gtt id: 286560813
GTT Placed: null
ltp : 88.4 Calculated trail price : 92.0
ltp : 88.8 Calculated trail price : 92.0
ltp : 89.2 Calculated trail price : 92.0
ltp : 1011.9 Calculated trail price : 1019.0
ltp : 1017.0 Calculated trail price : 1019.0
ltp : 89.4 Calculated trail price : 92.0
ltp : 89.7 Calculated trail price : 92.0
ltp : 92.9 Calculated trail price : 92.0
Inside percentage based trail
newStop Loss: 90.0 newTarget: 103.0
Modify GTT Request : {condition={"instrument_token":10388738,"tradingsymbol":"NIFTY24800CE","trigger_values":[90,103],"exchange":"NFO","last_price":92.9}, orders=[{"product":"MIS","quantity":75,"price":90,"tradingsymbol":"NIFTY24800CE","exchange":"NFO","transaction_type":"SELL","order_type":"SL"},{"product":"MIS","quantity":75,"price":103,"tradingsymbol":"NIFTY24800CE","exchange":"NFO","transaction_type":"SELL","order_type":"LIMIT"}], type=two-leg}
Modify GTT Response : {"data":{"trigger_id":286560813},"status":"success"}
Time : 09:37:11 After Modify GTT Stop Loss: 90.0 Target Price: 103.0
gtt id: 286560813
ltp : 92.4 Calculated trail price : 102.0
ltp : 1017.0 Calculated trail price : 1019.0
ltp : 92.5 Calculated trail price : 102.0
ltp : 93.2 Calculated trail price : 102.0
ltp : 1020.0 Calculated trail price : 1019.0
Inside Fixed based trail
Modify GTT Request : {condition={"instrument_token":13984514,"tradingsymbol":"BANKNIFTY53800CE","trigger_values":[1019,1029],"exchange":"NFO","last_price":1020}, orders=[{"product":"MIS","quantity":35,"price":1019,"tradingsymbol":"BANKNIFTY53800CE","exchange":"NFO","transaction_type":"SELL","order_type":"SL"},{"product":"MIS","quantity":35,"price":1029,"tradingsymbol":"BANKNIFTY53800CE","exchange":"NFO","transaction_type":"SELL","order_type":"LIMIT"}], type=two-leg}
Modify Kite Exception GTT Request : {condition={"instrument_token":13984514,"tradingsymbol":"BANKNIFTY53800CE","trigger_values":[1019,1029],"exchange":"NFO","last_price":1020}, orders=[{"product":"MIS","quantity":35,"price":1019,"tradingsymbol":"BANKNIFTY53800CE","exchange":"NFO","transaction_type":"SELL","order_type":"SL"},{"product":"MIS","quantity":35,"price":1029,"tradingsymbol":"BANKNIFTY53800CE","exchange":"NFO","transaction_type":"SELL","order_type":"LIMIT"}], type=two-leg}
Error in Kite Exception modifying GTT order: null retrying
ltp : 1020.0 Calculated trail price : 1024.0
ltp : 93.9 Calculated trail price : 102.0

ltp : 94.85 Calculated trail price : 102.0
ltp : 1024.0 Calculated trail price : 1024.0
Inside Fixed based trail
Modify GTT Request : {condition={"instrument_token":13984514,"tradingsymbol":"BANKNIFTY53800CE","trigger_values":[1024,1034],"exchange":"NFO","last_price":1024}, orders=[{"product":"MIS","quantity":35,"price":1024,"tradingsymbol":"BANKNIFTY53800CE","exchange":"NFO","transaction_type":"SELL","order_type":"SL"},{"product":"MIS","quantity":35,"price":1034,"tradingsymbol":"BANKNIFTY53800CE","exchange":"NFO","transaction_type":"SELL","order_type":"LIMIT"}], type=two-leg}
Modify Kite Exception GTT Request : {condition={"instrument_token":13984514,"tradingsymbol":"BANKNIFTY53800CE","trigger_values":[1024,1034],"exchange":"NFO","last_price":1024}, orders=[{"product":"MIS","quantity":35,"price":1024,"tradingsymbol":"BANKNIFTY53800CE","exchange":"NFO","transaction_type":"SELL","order_type":"SL"},{"product":"MIS","quantity":35,"price":1034,"tradingsymbol":"BANKNIFTY53800CE","exchange":"NFO","transaction_type":"SELL","order_type":"LIMIT"}], type=two-leg}
Error in Kite Exception modifying GTT order: null retrying
GTT ID: 286560813 Status: triggered
Order Update: 250908100236021 Status: OPEN
Order Update: 250908100236021 Status: COMPLETE
This discussion has been closed.