Add /exchanges endpoint to list available exchanges

This commit is contained in:
Matthias
2023-06-03 09:20:01 +02:00
parent 54bf1634c7
commit 74254bb893
3 changed files with 49 additions and 1 deletions

View File

@@ -5,6 +5,7 @@ from pydantic import BaseModel
from freqtrade.constants import DATETIME_PRINT_FORMAT, IntOrInf
from freqtrade.enums import OrderTypeValues, SignalDirection, TradingMode
from freqtrade.types import ValidExchangesType
class Ping(BaseModel):
@@ -396,6 +397,10 @@ class StrategyListResponse(BaseModel):
strategies: List[str]
class ExchangeListResponse(BaseModel):
exchanges: List[ValidExchangesType]
class FreqAIModelListResponse(BaseModel):
freqaimodels: List[str]