1.2.2 • Published 6 years ago

robinhood-portfolio v1.2.2

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

Robinhood Portfolio

Simply returns your Robinhood portfolio, with stock symbols, stock full name, and average buy price

Installation

npm install robinhood-portfolio

Usage

  1. Create/Edit the .env to provide the robinhood access token
    ROBINHOOD_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  2. 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();

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.

References

  1. Unofficial Documentation of Robinhood Trade's Private API
1.2.2

6 years ago

1.1.1

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago