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

Can't seem to sign in properly. #65

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

Can't seem to sign in properly. #65

alexjavad opened this issue Nov 15, 2021 · 0 comments

Comments

@alexjavad
Copy link

alexjavad commented Nov 15, 2021

I'm attempting to sign into Robinhood using algotracker's methods. I.E. I'm doing this:

const User = robinhood.User;

const myUser = new User("username", "password", "token");

myUser.authenticate()
.then(() => {
// User was authenticated
console.log("User authenticated...")
})
.catch(error => {
// Either the request failed, or Robinhood responded with an error.
// (Ex: you don't have internet access or your user credentials were incorrect)
});

However, I'm getting the following error:

Robinhood responded with code 401: unauthorized.

This at one point did download a number of objects from Robinhood when placing a call to:
const option = await Instrument.getBySymbol(optionSignal.Ticker);

Your guess is as good as mine - better if you get it right.

@alexjavad alexjavad reopened this Nov 15, 2021
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