pridany metriky a bugfixy pro live run

This commit is contained in:
David Brazda
2023-08-28 20:22:37 +02:00
parent a94e2ed5e4
commit 4c861c59a1
9 changed files with 112 additions and 29 deletions

View File

@ -18,12 +18,12 @@ class TradeStoplossType(str, Enum):
class Trade(BaseModel):
id: UUID
validfrom: datetime
last_update: datetime
status: TradeStatus
direction: TradeDirection
entry_price: Optional[float] = None
# stoploss_type: TradeStoplossType
stoploss_value: Optional[float] = None
profit: Optional[float] = None
profit_sum: Optional[float] = None
profit: Optional[float] = 0
profit_sum: Optional[float] = 0