chore: align API endpoints

This commit is contained in:
Matthias
2025-07-08 20:09:17 +02:00
parent 17c7826756
commit 2ecadabd92
2 changed files with 10 additions and 0 deletions

View File

@@ -163,6 +163,11 @@ class Profit(BaseModel):
max_drawdown_start_timestamp: int
max_drawdown_end: str
max_drawdown_end_timestamp: int
current_drawdown: float
current_drawdown_abs: float
current_drawdown_high: float
current_drawdown_start: str
current_drawdown_start_timestamp: int
trading_volume: float | None = None
bot_start_timestamp: int
bot_start_date: str

View File

@@ -1332,6 +1332,11 @@ def test_api_profit(botclient, mocker, ticker, fee, markets, is_short, expected)
"max_drawdown_start_timestamp": ANY,
"max_drawdown_end": ANY,
"max_drawdown_end_timestamp": ANY,
"current_drawdown": ANY,
"current_drawdown_abs": ANY,
"current_drawdown_high": ANY,
"current_drawdown_start": ANY,
"current_drawdown_start_timestamp": ANY,
"trading_volume": expected["trading_volume"],
"bot_start_timestamp": 0,
"bot_start_date": "",