Simply returns your Robinhood portfolio, with stock symbols, stock full name, and average buy price
npm install robinhood-portfolio
- Create/Edit the
.env
to provide the robinhood access tokenROBINHOOD_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
- Refer to
spec/example.js
for example API- Alway refer to the example file for the most updated version
const portfolio = new Portfolio(process.env.ROBINHOOD_TOKEN, { testMode: false }); const orderHistory = await portfolio.getOrderHistory();
npm run build
npm link
cd <path-to-project-that-tests-this-package>
npm link robinhood-portfolio
# import { Portfolio } from 'robinhood-portfolio;
The versioning of this package follows semantic versioning MAJOR.MINOR.PATCH
.