Portfolio

Models. Portfolio

It fetches the portfolio of a user and returns

Constructor

new Portfolio(user)

Parameters:
Name Type Description
user string
Source:

Methods

(async) get()

Gets the portfolio for all the symbols traded by the user

Source:

(async) getReturns()

Uses the portfolio data and calculates the cumulative returns over all the stocks

Source: