Simplify LiveStats models

This commit is contained in:
Matthias
2023-11-11 17:16:31 +01:00
parent 54536a1c8e
commit c7624b1ed6

View File

@@ -95,37 +95,28 @@ class Count(BaseModel):
total_stake: float
class Entry(BaseModel):
class __BaseStatsModel(BaseModel):
profit_ratio: float
profit_pct: float
profit_abs: float
count: int
class Entry(__BaseStatsModel):
enter_tag: str
profit_ratio: float
profit_pct: float
profit_abs: float
count: int
class Exit(BaseModel):
class Exit(__BaseStatsModel):
exit_reason: str
profit_ratio: float
profit_pct: float
profit_abs: float
count: int
class MixTag(BaseModel):
class MixTag(__BaseStatsModel):
mix_tag: str
profit_ratio: float
profit_pct: float
profit_abs: float
count: int
class PerformanceEntry(BaseModel):
class PerformanceEntry(__BaseStatsModel):
pair: str
profit: float
profit_ratio: float
profit_pct: float
profit_abs: float
count: int
class Profit(BaseModel):