diff --git a/controllers_v2/finstitutions/trading/zerodha_kite.py b/controllers_v2/finstitutions/trading/zerodha_kite.py index a316eee..a387135 100644 --- a/controllers_v2/finstitutions/trading/zerodha_kite.py +++ b/controllers_v2/finstitutions/trading/zerodha_kite.py @@ -276,7 +276,7 @@ class ZerodhaKiteTradingController(TradingController): symbol_list.data = [] for exchange in inbound_data.exchanges: symbols_subset = kite.instruments(exchange = exchange) - symbols_subset = [TradingSymbol.from_zerodha_kite(s) for s in symbols_subset[:10]] + symbols_subset = [TradingSymbol.from_zerodha_kite(s) for s in symbols_subset] symbol_list.data += symbols_subset symbol_list.success = True symbol_list.message = "Symbol list retrieved successfully." @@ -285,6 +285,7 @@ class ZerodhaKiteTradingController(TradingController): except Exception as exception: symbol_list.exception = exception symbol_list.message = str(exception) + symbol_list.data = None # Done here: return symbol_list