mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 16:43:06 +00:00
Implment weekly/monthly RPC endpoints
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user