Simplify api schema by not using union types

This commit is contained in:
Matthias
2022-02-15 20:01:35 +01:00
parent dfd5d3b8b2
commit 3787b747ae
3 changed files with 8 additions and 5 deletions

View File

@@ -149,7 +149,7 @@ class ShowConfig(BaseModel):
api_version: float
dry_run: bool
stake_currency: str
stake_amount: Union[float, str]
stake_amount: str
available_capital: Optional[float]
stake_currency_decimals: int
max_open_trades: int
@@ -366,7 +366,7 @@ class BacktestRequest(BaseModel):
timeframe_detail: Optional[str]
timerange: Optional[str]
max_open_trades: Optional[int]
stake_amount: Optional[Union[float, str]]
stake_amount: Optional[str]
enable_protections: bool
dry_run_wallet: Optional[float]