tedchou12 / webull

Unofficial APIs for Webull.
MIT License
601 stars 184 forks source link

where did you find the account id #2

Closed duanlian0903 closed 5 years ago

duanlian0903 commented 5 years ago

When I try to get the account details by response = requests.get('https://tradeapi.webulltrade.com/api/trade/v2/home/10129689', headers=headers), I get the message that "This account does not belong to this user". How can you find the id 10129689 in your account?

tedchou12 commented 5 years ago

@duanlian0903 Thank you! Indeed. Sorry, I only tested my account, I nearly thought is an api version. I have added the webull.get_account_id() function. The readme has also been updated, please have a try and let me know. Ted

duanlian0903 commented 5 years ago

It is working now. Thank you very much!