-
Notifications
You must be signed in to change notification settings - Fork 206
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
Encrypt Password not working #348
Comments
Encrypt password works fine. See the integration test runs here Much more likely you have mixed up username, password, API key, account name, LIVE or DEMO in your code somewhere |
There are no tests for version=3 of the API with encryptPassword=true. I think I figured the problem out. I'm passing encrypt=True but that is only for version=2 of the API. Version=3 doesn't have encrypt=True and loads the credentials in plain text. Do you use version=2 or version=3? I was able to authenticate with version=2 using encrypt password but then the open position call doesn't do anything, but it does so with version=3 unencrypted. Is anyone actively trading with this client? Thanks. |
If I use version 3, which apparently doesn't need encrypt password, will that password by encrypted by default due ot it being HTTPS? If so, then why do we have the encrypt password for version2 that also uses HTTPS? |
You're right, v3 doesn't support encrypted password. See IG docs here Have a look at error "error.public-api.failure.encryption.required" on the same page. That implies encryption was introduced to comply with regulatory requirements in Singapore. I have traded with the API using v3 sessions |
So you're saying that using encrypt password = false should have no security risk then? |
I use v3 sessions for the reason mentioned in the last paragraph of this answer |
I'm authenticating with my demo account. If I choose to not encrypt password, the login works and can use the API. If I just change the value of encrypt password to True, then I get authentication error.
I have tried using the API Companion from IG on web, and Im able to authenticate encrypting the password and the same credentials.
Everything indicates that the password encryption using the encryption key is wrong, but I don't understand how anyone else doesn't have this problem.
That works.
That fails with:
The text was updated successfully, but these errors were encountered: