Implment weekly/monthly RPC endpoints

This commit is contained in:
froggleston
2023-09-02 16:06:23 +01:00
parent e5a88fdeda
commit f838bc760f
5 changed files with 71 additions and 6 deletions

View File

@@ -157,7 +157,7 @@ class Stats(BaseModel):
durations: Dict[str, Optional[float]]
class DailyRecord(BaseModel):
class DailyWeeklyMonthlyRecord(BaseModel):
date: date
abs_profit: float
rel_profit: float
@@ -166,8 +166,8 @@ class DailyRecord(BaseModel):
trade_count: int
class Daily(BaseModel):
data: List[DailyRecord]
class DailyWeeklyMonthly(BaseModel):
data: List[DailyWeeklyMonthlyRecord]
fiat_display_currency: str
stake_currency: str