From f8cb3d290188269808d6f3e88bd172fb526b88d0 Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 29 Nov 2021 19:52:40 +0100 Subject: [PATCH] Restore openAPI functioning --- freqtrade/rpc/api_server/api_schemas.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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