-
-
Notifications
You must be signed in to change notification settings - Fork 184
Test Code Snippets
PageMastr edited this page Mar 4, 2021
·
3 revisions
Here i Will provide usage examples for various testing when working with the api.
Last Updated: 2021/03/04
Login 2fa Test Snippet for verifying successful 2fa login:
from webull import webull
wb = webull()
email = input('Please Enter Webull Email: ')
password = input('Please Enter Webull Password: ')
device = 'home pc'
print(wb.get_mfa(email))
mfa = input('Please enter 6 digit security key: ')
print(str(wb.get_security(email)))
mfaqid = input('Please enter question id: ')
mfaq = input('Please enter question answer: ')
data = wb.login(email, password, device, mfa, mfaqid, mfaq) # 6 digits MFA, Security Question ID, Question Answer.
print("\n\n\n\n"+ str(data) + "\n\n\n\n\n")```
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