portfolio_toolkit.asset.portfolio.portfolio_asset_transaction module

class portfolio_toolkit.asset.portfolio.portfolio_asset_transaction.PortfolioAssetTransaction(date: str, transaction_type: str, quantity: float, price: float, currency: str, total: float, exchange_rate: float, subtotal_base: float, fees_base: float, total_base: float)[source]

Bases: object

date: str
transaction_type: str
quantity: float
price: float
currency: str
total: float
exchange_rate: float
subtotal_base: float
fees_base: float
total_base: float
classmethod to_dataframe(transactions: List[PortfolioAssetTransaction], ticker: str) DataFrame[source]

Convert a list of PortfolioAssetTransaction objects to a pandas DataFrame.

__init__(date: str, transaction_type: str, quantity: float, price: float, currency: str, total: float, exchange_rate: float, subtotal_base: float, fees_base: float, total_base: float) None