Kite.GetGTT(gttOrderId) method call not working but throwing exception

panirajn
KiteConnect.DataException
HResult=0x80131500
Message=The given key 'result' was not present in the dictionary. {"exchange":"NSE","tradingsymbol":"MBAPL","transaction_type":"SELL","quantity":1,"order_type":"LIMIT","product":"CNC","price":1.6} {"id":334798571,"user_id":"HZW906","type":"two-leg","created_at":"2026-09-04 12:05:29","updated_at":"2026-09-04 12:05:29","expires_at":"2027-09-04 12:05:29","status":"active","condition":{"instrument_token":3247617,"exchange":"NSE","tradingsymbol":"MBAPL","trigger_values":[1.8,164.4],"last_price":162.77},"orders":[{"exchange":"NSE","tradingsymbol":"MBAPL","transaction_type":"SELL","quantity":1,"order_type":"LIMIT","product":"CNC","price":1.6},{"exchange":"NSE","tradingsymbol":"MBAPL","transaction_type":"SELL","quantity":1,"order_type":"LIMIT","product":"CNC","price":164.4}]}
Source=KiteConnect
StackTrace:
at KiteConnect.GTT..ctor(Dictionary`2 data)
at System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1)
at KiteConnect.Kite.GetGTT(Int32 GTTId)
at ZerodhaKiteService.KiteService.GetGttForId(Int32 gttOrderId) in C:\Users\AzureUserPaniraj\source\repos\NSEDataPullApp\ZerodhaKiteService\KiteService.cs:line 479
at ZerodhaApiClient1App.Controllers.TradingController.GetGtt(Int32 order_id) in C:\Users\AzureUserPaniraj\source\repos\NSEDataPullApp\ZerodhaApiClient1App\Controllers\TradingController.cs:line 122
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()

This exception was originally thrown at this call stack:
[External Code]

Inner Exception 1:
**KiteConnect.DataException:** 'The given key 'result' was not present in the dictionary\. \{"exchange":"NSE","tradingsymbol":"MBAPL","transaction\_type":"SELL","quantity":1,"order\_type":"LIMIT","product":"CNC","price":1\.6\}'

Inner Exception 2:
**System.Collections.Generic.KeyNotFoundException:** 'The given key 'result' was not present in the dictionary\.'
Sign In or Register to comment.