mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-14 11:51:19 +00:00
feat: add magin_mode to show_config response
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"]),
|
||||
|
||||
Reference in New Issue
Block a user