mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-17 05:11:15 +00:00
chore: align API endpoints
This commit is contained in:
@@ -163,6 +163,11 @@ class Profit(BaseModel):
|
|||||||
max_drawdown_start_timestamp: int
|
max_drawdown_start_timestamp: int
|
||||||
max_drawdown_end: str
|
max_drawdown_end: str
|
||||||
max_drawdown_end_timestamp: int
|
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
|
trading_volume: float | None = None
|
||||||
bot_start_timestamp: int
|
bot_start_timestamp: int
|
||||||
bot_start_date: str
|
bot_start_date: str
|
||||||
|
|||||||
@@ -1332,6 +1332,11 @@ def test_api_profit(botclient, mocker, ticker, fee, markets, is_short, expected)
|
|||||||
"max_drawdown_start_timestamp": ANY,
|
"max_drawdown_start_timestamp": ANY,
|
||||||
"max_drawdown_end": ANY,
|
"max_drawdown_end": ANY,
|
||||||
"max_drawdown_end_timestamp": 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"],
|
"trading_volume": expected["trading_volume"],
|
||||||
"bot_start_timestamp": 0,
|
"bot_start_timestamp": 0,
|
||||||
"bot_start_date": "",
|
"bot_start_date": "",
|
||||||
|
|||||||
Reference in New Issue
Block a user