1.2.2 • Published 7 years ago
robinhood-portfolio v1.2.2
Robinhood Portfolio
Simply returns your Robinhood portfolio, with stock symbols, stock full name, and average buy price
Installation
npm install robinhood-portfolioUsage
- Create/Edit the
.envto provide the robinhood access tokenROBINHOOD_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx - Refer to
spec/example.jsfor 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();
Development
npm run build
npm link
cd <path-to-project-that-tests-this-package>
npm link robinhood-portfolio
# import { Portfolio } from 'robinhood-portfolio;Versioning
The versioning of this package follows semantic versioning MAJOR.MINOR.PATCH.