diff --git a/freqtrade/rpc/api_server/api_schemas.py b/freqtrade/rpc/api_server/api_schemas.py index d0e772848..98cc8e15a 100644 --- a/freqtrade/rpc/api_server/api_schemas.py +++ b/freqtrade/rpc/api_server/api_schemas.py @@ -132,13 +132,10 @@ class UnfilledTimeout(BaseModel): exit_timeout_count: Optional[int] -class OrderTypeValues(Enum): +class OrderTypeValues(str, Enum): limit = 'limit' market = 'market' - class Config: - use_enum_values = True - class OrderTypes(BaseModel): buy: OrderTypeValues