[增强功能] 天勤使用快期的免费行情数据地址

This commit is contained in:
msincenselee 2020-08-19 11:46:07 +08:00
parent e0c5de92dc
commit ffb7d7f910

View File

@ -37,8 +37,8 @@ if __name__ == "__main__":
print('下载合约未设定 参数 -s rb2010')
os._exit(0)
# 开始下载
api = TqApi(TqSim())
# 开始下载(使用快期的免费行情websocket)
api = TqApi(account=TqSim(), url="wss://u.shinnytech.com/t/md/front/mobile")
download_tasks = {}
begin_date = datetime.strptime(args.begin, '%Y%m%d')
end_date = datetime.strptime(args.end, '%Y%m%d')