-
-
Notifications
You must be signed in to change notification settings - Fork 185
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
Errors when you have 2 webull accounts - think it's picking the wrong one #426
Comments
def get_account_id(self): <- this is the method that needs to be modified. The method as its written by the author will only retrieve the first account among the list of accounts. id = str(result['data'][0]['secAccountId']) to: id = str(result['data'][1]['secAccountId']) To confirm this is correct, you could print out the response and confirm the data matches the account.
|
Interesting. Mine looks a little different:
setting "id=0" to "id=1" does make it successfully place a trade to the margin account. BUT - i'm still getting an error from the request.push in place_option_order, even though the trade was successfull placed. Here's the json and the resp code:
I guess i'm good now that its actually placing the order. Very confused as to why it's throwing an error though. |
I have one cash and one margin account with webull. I think it's picking the newest account by default when logging in. Is there any way to specify which account to use?
I'm using the "workaround" login method. But - the tokens seem to be the same no matter which account i choose in the web ui.
Thanks for any help.
The text was updated successfully, but these errors were encountered: