Restore openAPI functioning

This commit is contained in:
Matthias 2021-11-29 19:52:40 +01:00
parent bd8348451e
commit f8cb3d2901

View File

@ -132,13 +132,10 @@ class UnfilledTimeout(BaseModel):
exit_timeout_count: Optional[int] exit_timeout_count: Optional[int]
class OrderTypeValues(Enum): class OrderTypeValues(str, Enum):
limit = 'limit' limit = 'limit'
market = 'market' market = 'market'
class Config:
use_enum_values = True
class OrderTypes(BaseModel): class OrderTypes(BaseModel):
buy: OrderTypeValues buy: OrderTypeValues