Add response_models for new endpoints

This commit is contained in:
Matthias
2023-11-11 14:43:24 +01:00
parent de68850d28
commit 2ef716e94c
2 changed files with 34 additions and 10 deletions

View File

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