3.39K 浏览
0

from datetime import datetime, date
from contextlib import closing
from tqsdk import TqApi, TqSim
from tqsdk.tools import DataDownloader
 api = TqApi(TqSim())
download_tasks = {"T_tick": DataDownloader(api, symbol_list=["CZCE.MA007"], dur_sec=0,
                                           start_dt=datetime(2020, 4, 28), end_dt=datetime(2020, 5, 1),
                                           csv_file_name="MA007_tick20200429.csv")}
with closing(api):
    while not all([v.is_finished() for v in download_tasks.values()]):
        api.wait_update()
        print("progress: ", { k:("%.2f%%" % v.get_progress()) for k,v in download_tasks.items() })

第三行导入天勤包报错,Process finished with exit code -1073741819 (0xC0000005),不知道该怎么解决,是不是要重新下载包

west 已回答的问题 2020年5月29日