Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api.bar 函数返回的值为什么是False? 应该是DataFrame 才对。 #48

Open
wcsmomo opened this issue Jul 9, 2018 · 1 comment

Comments

@wcsmomo
Copy link

wcsmomo commented Jul 9, 2018

我使用的是下面这个代码:
api = DataApi(addr='tcp://data.tushare.org:8910')
api.login("1339006***", "******")
df,_1 = api.bar(
symbol= symbol,
trade_date=int(i_date),
freq=freq,
fields="open,high,low,close,volume,date,time,oi")

@kevinhuangwl
Copy link

连接失败的时候就会是False。查看msg返回值应该有提示

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants