Skip to content

PortfolioSummary

Thiago W. Alves edited this page Feb 6, 2019 · 6 revisions

Constructors:

Member Functions:


PortfolioSummary(totalBP, totalShares, totalRealizedPL)

Parameters

  • totalBP : float

    Total buying power available in the account.

  • totalShares : int

    Total amount of (long and short) shares traded so far by the account.

  • totalRealizedPL : float

    Total realized P&L of the account.

Return Value

None


getTotalBP()

This method returns the total buying power available in the account.

Parameters

NA

Return Value

float : Total buying power available in the account.


gettotalshares()

This method returns the total amount of (long and short) shares traded so far by the account.

Parameters

NA

Return Value

int : Total amount of (long and short) shares traded so far by the account.


getTotalRealizedPL()

This method returns the total realized P&L of the account.

Parameters

NA

Return Value

float : Total realized P&L of the account.


getTimestamp()

This method returns the timestamp of when the portfolio summary was last updated.

Parameters

NA

Return Value

datetime.datetime : Timestamp of when the portfolio summary was last updated.


Clone this wiki locally