feat: add magin_mode to show_config response

This commit is contained in:
Matthias
2025-09-25 07:20:27 +02:00
parent 61f46b959e
commit a049d6eab1
2 changed files with 2 additions and 0 deletions

View File

@@ -229,6 +229,7 @@ class ShowConfig(BaseModel):
api_version: float
dry_run: bool
trading_mode: str
margin_mode: str
short_allowed: bool
stake_currency: str
stake_amount: str

View File

@@ -136,6 +136,7 @@ class RPC:
"strategy_version": strategy_version,
"dry_run": config["dry_run"],
"trading_mode": config.get("trading_mode", "spot"),
"margin_mode": config.get("margin_mode", ""),
"short_allowed": config.get("trading_mode", "spot") != "spot",
"stake_currency": config["stake_currency"],
"stake_currency_decimals": decimals_per_coin(config["stake_currency"]),