Closed liusw02 closed 5 years ago
import tushare as ts # 数据
ts.set_token() pro = ts.pro_api()
df = pro.moneyflow(trade_date='20190315')
df = pro.moneyflow(ts_code='002149.SZ', start_date='20190115', end_date='20190315') print(df)
raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 504: Gateway Time-out
后来已经已经解决
可以用了。我以为还要等一段时间呢,效率蛮高的 👍
Tushare上的代码实例
import tushare as ts # 数据
ts.set_token() pro = ts.pro_api()
获取单日全部股票数据
df = pro.moneyflow(trade_date='20190315')
获取单个股票数据
df = pro.moneyflow(ts_code='002149.SZ', start_date='20190115', end_date='20190315') print(df)
OUT:
raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 504: Gateway Time-out