show max_stake_amount in API

This commit is contained in:
Matthias
2022-12-27 13:46:27 +01:00
parent 55001bf321
commit cb66663fd2
5 changed files with 7 additions and 0 deletions

View File

@@ -470,6 +470,7 @@ class LocalTrade():
'amount': round(self.amount, 8),
'amount_requested': round(self.amount_requested, 8) if self.amount_requested else None,
'stake_amount': round(self.stake_amount, 8),
'max_stake_amount': round(self.max_stake_amount, 8) if self.max_stake_amount else None,
'strategy': self.strategy,
'buy_tag': self.enter_tag,
'enter_tag': self.enter_tag,

View File

@@ -217,6 +217,7 @@ class TradeSchema(BaseModel):
amount: float
amount_requested: float
stake_amount: float
max_stake_amount: Optional[float]
strategy: str
buy_tag: Optional[str] # Deprecated
enter_tag: Optional[str]