-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
ERROR: yhtrader.pyc: Can not fetch balance info #31
Comments
python 2.7 不支持银河,因为银河用到了 dict 的中文 key |
@shidenggui 我又看了下,这个错误跟中文key无关,而是凡是有4个股东账户,都登不上银河的hytrader。Can not fetch balance info出自yhtrader.format_response_data方法
有四个账户时,len(search_result_content) 并不等于20,而是18,“设为主股东”这一列只有2个值,还有两个非主股东是空值,所以进不了else |
@shidenggui dict 的中文 key的问题,似乎在key前加u即可,YHTrader.login()
目前这两问题fix之后,继续报错 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
执行到yhtrader.login的exchangeinfo = list((self.do(dict(self.config['account4stock']))))
进一步,webtrader.do的format_json_data = self.format_response_data(response_data)
时抛出这个错误ERROR: yhtrader.pyc: Can not fetch balance info,请问是什么原因呢。
环境win8 x64, python2.7,谢谢。。
如果继续运行就是这样了:
exchangeinfo的值是
[u'股东代码', u'交易市场', u'股东姓名', u'客户代码', u'设为主股东']
The text was updated successfully, but these errors were encountered: