tuShare.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:stockUtils 作者: caiyue 项目源码 文件源码
def loop_all_stocks():
    days = 60
    count =0
    for EachStockID in info.index:
        end_day=datetime.date(datetime.date.today().year,datetime.date.today().month,datetime.date.today().day)
        days=days*7/5
        start_day=end_day-datetime.timedelta(days)
        start_day=start_day.strftime("%Y-%m-%d")
        end_day=end_day.strftime("%Y-%m-%d")
        df= ts.get_h_data(EachStockID,start=start_day,end=end_day)
        if not(df is None):
            period_high=df['high'].max()
            today_high=df.iloc[0]['high']
            if today_high>=period_high:
                highlist.append(df,ignore_index=True)
                count+=1
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号