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

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