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 404 #19

Open
alfadog67 opened this issue Feb 20, 2019 · 0 comments
Open

Robinhood 404 #19

alfadog67 opened this issue Feb 20, 2019 · 0 comments

Comments

@alfadog67
Copy link

alfadog67 commented Feb 20, 2019

I'm getting an error after following the documentation. Either I missed something, or this is an unexpected error.

(node:186620) UnhandledPromiseRejectionWarning: Error: Robinhood responded with code 404: not found | Not Found

The requested URL /accounts/null/positions/ was not found on this server.

Here is my code:

myUser.getPortfolio()
.then(myPortfolio => {
let myTeslaShares = myPortfolio.getQuantity("TSLA");
let bestDayEver = myPortfolio.getPurchaseDate("SHLD");
let mySymbols = myPortfolio.getSymbols();
let myMoneyMakers = myPortfolio.getQuantityGreaterThan(50);
})
.catch(error => {
console.log("getPortfolio Failed!", error);
})

where myUser is an authenticated Robinhood.User

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