-
Notifications
You must be signed in to change notification settings - Fork 118
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
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The text was updated successfully, but these errors were encountered: