This commit is contained in:
fasiondog 2020-08-05 22:40:29 +08:00
commit 6ea8a6974b
2 changed files with 4 additions and 0 deletions

View File

@ -70,6 +70,8 @@ def import_stock_name(connect, api, market, quotations=None):
for i in range(int(stk_count/1000)+1):
stock_list = api.get_security_list(pytdx_market, i * 1000)
if stock_list is None:
continue
for stock in stock_list:
newStockDict[stock['code']] = stock['name']

View File

@ -66,6 +66,8 @@ def import_stock_name(connect, api, market, quotations=None):
for i in range(int(stk_count/1000)+1):
stock_list = api.get_security_list(pytdx_market, i * 1000)
if stock_list is None:
continue
for stock in stock_list:
newStockDict[stock['code']] = stock['name']