def getDateFromMarket(id):
price = {}
# 002060
data = ts.get_hist_data(id)
for p in data.iterrows():
# high
high = float(p[1]['high'])
# low
low = float(p[1]['low'])
price[p[0].encode("utf-8")] = (high + low) / 2
return price
评论列表
文章目录