-
-
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
Issue with get_history_orders() #410
Comments
Sorry that it's unrelated, but people are having issues logging in now. Are you still able to login with the API? |
Yes. I use the following command to log in: wb.login(MYUSER, MYPASS) What error does it show when you enter wb.login? |
So the code doesn't abruptly stop with an error just from trying to login but just as a way of checking if the login worked, I always output my account info to the terminal after logging in. So when I do account_Info = wb.get_account() I get this {'timestamp': Are you able to print out your account info without any errors? I also submitted an issue about the image verification failing which is why my login doesn't work |
Dear M1NL1TE, I just tried these again, and it worked for me: One question. Are you working with live trading or paper trading? In the message you receive, I can see the "paper" term. Maybe that's the reason. Do you import Webull or paper_Webull? |
I am working with paper trading. I have tried to switch to live trading and the error becomes this: {'msg': 'AccessToken is expire, 'code': 'auth.token.expire', 'data': (), 'success": False} I tried doing the mfa again but it doesn't work. And now any subsequent attempts at using wb.get_mfa(email) doesn't send any new mfa emails |
Dear M1NL1TE: Try these with your live trading: creds = wb.login(USER, PASS) |
How to get the new "creds " when the old one expire? |
Those keys don't exist for me. I get a "KeyError: 'accessToken'" I checked the keys in the creds dictionary/data object and there are no keys for any of those (accessToken,token_expire,uuid) |
I'm experiencing the same issue as well |
I figured out a workaround for wb.get_history_orders() not working for me. Currently, wb.get_history_orders() is returning the following error: Looks like the issue is the startTime format, "1970-0-1", is no longer working. I tried several different formats to no avail. Instead, I simply removed this parameter from the source file and it's working fine. Open endpoints.py (site-packages > webull > endpoints.py) Change line 144 ("orders" function within urls class) so that startDate is removed: Save and rerun. This worked for me. |
Any idea how to stay login and refresh tokens? |
This was exactly the same solution I found and worked for me. |
to open endpoint, I did from webull import endpoints and right-click endpoints and open definitions to get to line 144 and then changed the >> return basically deleting '&startTime=1970-0-1'. Thanks "Hassan" |
@MHassanNajafi @sitrucb286 you are amazing. it is working for me. Thank you,..!! |
Hi All,
get_history_orders() function has stopped working for me. Anyone else has the same issue?
The text was updated successfully, but these errors were encountered: