-
Notifications
You must be signed in to change notification settings - Fork 28
PortfolioItem
- getSymbol()
- getShares()
- getLongShares()
- getShortShares()
- getPrice()
- getLongPrice()
- getShortPrice()
- getRealizedPL()
- getTimestamp()
-
symbol : str
Symbol of the portfolio item.
-
long_shares : int
Amount of long shares in the portfolio item.
-
short_shares : int
Amount of short shares in the portfolio item.
-
long_price : float
Average price of the long shares of the portfolio item.
-
short_price : float
Average price of the short shares of the portfolio item.
-
realized_pl : float
Realized P&L of the portfolio item.
None
This method returns the symbol of the portfolio item.
NA
str
: Symbol of the portfolio item.
This method returns the amount of shares one has in the portfolio item.
NA
int
: Amount of shares in the portfolio item, summarized from both long and short shares.
This method returns the amount of long shares one has in the portfolio item.
NA
int
: Amount of long shares in the portfolio item.
This method returns the amount of short shares one has in the portfolio item.
NA
int
: Amount of short shares in the portfolio item.
This method returns the average price of the shares of the portfolio item.
NA
float
: Average price of the shares of the portfolio item, summarized from both long and short shares.
This method returns the average price of the long shares of the portfolio item.
NA
float
: Average price of the long shares of the portfolio item.
This method returns the average price of the short shares of the portfolio item.
NA
float
: Average price of the short shares of the portfolio item.
This method returns the realized P&L of the portfolio item.
NA
float
: Realized P&L of the portfolio item.
This method returns the timestamp of when the portfolio item was last updated.
NA
datetime.datetime
: Timestamp of when the portfolio item was last updated.
Overview
Classes