(20241223) Testing limits on symbol list removed. Full lists available now.
This commit is contained in:
@@ -276,7 +276,7 @@ class ZerodhaKiteTradingController(TradingController):
|
|||||||
symbol_list.data = []
|
symbol_list.data = []
|
||||||
for exchange in inbound_data.exchanges:
|
for exchange in inbound_data.exchanges:
|
||||||
symbols_subset = kite.instruments(exchange = exchange)
|
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.data += symbols_subset
|
||||||
symbol_list.success = True
|
symbol_list.success = True
|
||||||
symbol_list.message = "Symbol list retrieved successfully."
|
symbol_list.message = "Symbol list retrieved successfully."
|
||||||
@@ -285,6 +285,7 @@ class ZerodhaKiteTradingController(TradingController):
|
|||||||
except Exception as exception:
|
except Exception as exception:
|
||||||
symbol_list.exception = exception
|
symbol_list.exception = exception
|
||||||
symbol_list.message = str(exception)
|
symbol_list.message = str(exception)
|
||||||
|
symbol_list.data = None
|
||||||
|
|
||||||
# Done here:
|
# Done here:
|
||||||
return symbol_list
|
return symbol_list
|
||||||
|
|||||||
Reference in New Issue
Block a user