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

龙虎榜top_list返回IOError: 获取失败,请检查网络和URL #223

Closed
tesla1060 opened this issue Nov 13, 2016 · 3 comments
Closed

Comments

@tesla1060
Copy link

例如 top_list('2016-11-11', 5) 返回 返回IOError: 获取失败,请检查网络和URL

但是我step through了一下code,并不是网略问题,是有些股票只有买量,没有卖量,而代码中没有考虑到这一点。

@jimmysoa
Copy link
Member

好的,谢谢。

@heamon7
Copy link

heamon7 commented Jun 7, 2017

你好,这个问题好像还是存在,还没有修复么?
比如 ts.top_list('2017-06-06')

@jimmysoa
Copy link
Member

jimmysoa commented Jun 7, 2017

是mac系统吗?我得找个mac测试一下

windows上好像没问题:
In [1]: import tushare as ts

In [2]: ts.top_list('2017-06-06')
Out[2]:
code name pchange amount buy sell
0 000022 深赤湾A 7.5472 13208.36 8463.87 4744.49
1 000033 新都退 -9.9738 0.69 0.24 0.45
2 000504 南华生物 9.8425 19483.21 10348.88 9134.32
3 000607 华媒控股 9.9719 8648.26 6994.74 1653.52
4 000638 万方发展 10.0389 16654.17 10036.32 6617.85
5 000638 万方发展 10.0389 19414.65 12790.53 6624.12
6 000670 盈方微 10 3527.57 2488.46 1039.11
7 000856 冀东装备 3.7461 18536.79 10340.79 8196.00
8 002197 证通电子 9.9737 9165.25 6909.05 2256.21
9 002350 北京科锐 -9.9936 29223.95 12053.48 17170.48
10 002379 宏创控股 10.0116 11420.69 6260.63 5160.06
11 002379 宏创控股 10.0116 11420.69 6260.63 5160.06
12 002530 金财互联 -10 7215.73 3066.77 4148.96
13 002805 丰元股份 10.0109 3244.36 2374.71 869.65

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

3 participants