Robinhood 404
alfadog67 opened this issue · comments
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