diff --git a/freqtrade/rpc/api_server/api_schemas.py b/freqtrade/rpc/api_server/api_schemas.py index bb5dfafa7..5f89b4a4f 100644 --- a/freqtrade/rpc/api_server/api_schemas.py +++ b/freqtrade/rpc/api_server/api_schemas.py @@ -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 diff --git a/tests/rpc/test_rpc_apiserver.py b/tests/rpc/test_rpc_apiserver.py index 573130a4a..120b4865b 100644 --- a/tests/rpc/test_rpc_apiserver.py +++ b/tests/rpc/test_rpc_apiserver.py @@ -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": "",