-
-
Notifications
You must be signed in to change notification settings - Fork 186
Workaround for Login ‐ Method 2
This is the updated version for the image verification workaround.
WHEN USING THIS METHOD, IGNORE METHOD 1
You do not need to use the "access token" codes for this method
- Visit https://app.webull.com/ and log in.
- Obtain your Refresh Token/DID
- Google Chrome or Microsoft Edge via Javascript
- Copy the following into your browser address bar
javascript:alert( document.cookie.match(new RegExp('(^| )web_did=([^;]+)'))[2] );
- Note that your browser may remove the
javascript:
prefix. You may have to manually re-type that part.
- Note that your browser may remove the
- Copy the string that's displayed. That is your 'Refresh Token' or 'did'.
- Copy the following into your browser address bar
- Other Browsers or manually
-
Click on the "trade" tab in the top menu. It should open up a new page.
-
Login from this new page. You should see an image verification and may need to verify with a phone number.
-
Open "Inspector", go to "Network". You should refresh the page once you are done logging in.
-
You can find your Access Token and Refresh Token in many of files listed. Just click on one (such as 'v2', 'get', 'all', or 'config')
-
Look in the "Headers" tab under the "Request Headers" heading for the "did" entry:
-
- Google Chrome or Microsoft Edge via Javascript
wb = webull()
wb._did = "whatever the did is should be tons of random letters an numbers but should be in hex"
wb.login(email, pw)
wb.get_trade_token(code)
After this, you should be able to access your account via this API.
This will generate a did file and save it in your project.
wb = webull()
wb._set_did("whatever the did is should be tons of random letters an numbers but should be in hex")
If you like the project and would like me to devote my time to it, you can support me here directly :
You can always help by contributing to the project directly with PR. Make sure that you don't upload your account credentials accidentally.
https://github.com/tedchou12/webull/wiki/For-Developers-Contributors