Skip to content
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

Robinhood responded with code 401: unauthorized. { "detail": "Incorrect authentication credentials." } #66

Open
alexjavad opened this issue Nov 28, 2021 · 0 comments

Comments

@alexjavad
Copy link

alexjavad commented Nov 28, 2021

I'm trying to authenticate my Robinhood user programmatically, so I can issue trades programmatically, using the following recommended code:

const myUser = new User(credentials.username, credentials.password, options);

myUser.authenticate()
    .then(() => {
        // User was authenticated
        console.log("Algotrader User Authenticated...");
    })
    .catch(error => {
        console.log("Authentication Error: " + error);
    });

But I'm getting the following error printed to the console when I run the app.js file:

image

Can anyone shed some light on this issue please? Thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant