webull: can't get real webull account information or place order

I logged in successfully in my webull account and got the trading token(return true). But I can not do anything about my real account. (everything is ok with my paper account) eg. wb.get_history_orders('Filled') it returns like this:

{‘msg’: ‘Failed to convert value of type 'java.lang.String' to required type 'java.lang.Long'; nested exception is java.lang.NumberFormatException: For input string: “None”’, ‘traceId’: ‘5079290334bd4e3f92ba9921510d6b69’, ‘code’: ‘400’, ‘success’: False}

wb.get_portfolio() it returns like this:

KeyError Traceback (most recent call last) <ipython-input-11-2d58d826c72c> in <module> ----> 1 wb.get_portfolio()

e:\code\trade\venv\lib\site-packages\webull\webull.py in get_portfolio(self) 221 data = self.get_account() 222 output = {} –> 223 for item in data[‘accountMembers’]: 224 output[item[‘key’]] = item[‘value’] 225 return output

KeyError: ‘accountMembers’

I’ve tried to reinstall webull, python and even tried another two computer. It still shows like this. could anyone help me solve this problem? thank you so much!

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 20 (6 by maintainers)

Most upvoted comments

I see… Sorry, I have no experience with an HK account. This is quite an isolated issue, so the help I can offer is limited. I know they have API support for various regions (you can find places to specify region code in the code).

If you want, I can take a look at it remotely personally. But from the status of the HK account, I suspect I can do much about it.

thanks, I really appreciate your help! If you are willing to remotely help me check it, my wechat is ivorytower123, my skype is niuyulin@live.com