def check_k_data():
each_code = '300333'
#?????????????????
df_x = ts.get_k_data(code=each_code, start='2017-03-01')
print df_x
if len(df_x) < 11:
print "Error"
exit()
print df_x
ma5 = df_x['close'][-5:].mean()
ma10 = df_x['close'][-10:].mean()
print ma5
print ma10
print df_x['volume']
#get_all_stock_id()
#check_type()
#news()
评论列表
文章目录