Skip to content

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

Notifications You must be signed in to change notification settings

alankyshum/Robinhood-Portfolio

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published