Expose total_profit_ratio through API

This commit is contained in:
Matthias
2023-03-06 07:10:02 +01:00
parent c4a80e33ea
commit d779d60812
3 changed files with 4 additions and 1 deletions

View File

@@ -286,6 +286,7 @@ class OpenTradeSchema(TradeSchema):
current_rate: float
total_profit_abs: float
total_profit_fiat: Optional[float]
total_profit_ratio: Optional[float]
open_order: Optional[str]

View File

@@ -42,7 +42,8 @@ logger = logging.getLogger(__name__)
# 2.22: Add FreqAI to backtesting
# 2.23: Allow plot config request in webserver mode
# 2.24: Add cancel_open_order endpoint
API_VERSION = 2.24
# 2.25: Add several profit values to /status endpoint
API_VERSION = 2.25
# Public API, requires no auth.
router_public = APIRouter()