Skip to content

PortfolioSummary

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

Constructors:

Member Functions:


PortfolioSummary(total_bp, total_shares, total_realized_pl)

Parameters

  • total_bp : float

    Total buying power available in the account.

  • total_shares : int

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

  • total_realized_pl : 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