asynctradier.common.gain_loss module
- class asynctradier.common.gain_loss.ProfitLoss(**kwargs)[source]
Bases:
objectProfitLoss class for storing profit/loss information for a security.
- close_date
Date the position was closed
- Type:
str
- cost
Total cost of the position
- Type:
float
- gain_loss
Gain or loss on the position
- Type:
float
- gain_loss_percent
Gain or loss represented as percent
- Type:
float
- open_date
Date the position was opened
- Type:
str
- proceeds
Total amount received for the position
- Type:
float
- quantity
Quantity of shares/contracts
- Type:
float
- symbol
Symbol of the security held
- Type:
str
- term
Term in months position was held
- Type:
int