diff --git a/controllers_v2/finstitutions/trading/zerodha_kite.py b/controllers_v2/finstitutions/trading/zerodha_kite.py index 6658441..e470f32 100644 --- a/controllers_v2/finstitutions/trading/zerodha_kite.py +++ b/controllers_v2/finstitutions/trading/zerodha_kite.py @@ -265,10 +265,10 @@ class ZerodhaKiteTradingController(TradingController): # Start by assuming failure: symbol_list = TradingSymbolListBrokerResponse() - try: + # Fit the token into the model: + zerodha_token = ZerodhaKiteAuthTokens(**auth_token.token) - # Fit the token into the model: - zerodha_token = ZerodhaKiteAuthTokens(**auth_token.token) + try: # Now create an instance of the Kite: kite = KiteConnect(api_key = auth_token.auth["apiKey"])