feat: add magin_mode to show_config response
This commit is contained in:
@@ -229,6 +229,7 @@ class ShowConfig(BaseModel):
|
|||||||
api_version: float
|
api_version: float
|
||||||
dry_run: bool
|
dry_run: bool
|
||||||
trading_mode: str
|
trading_mode: str
|
||||||
|
margin_mode: str
|
||||||
short_allowed: bool
|
short_allowed: bool
|
||||||
stake_currency: str
|
stake_currency: str
|
||||||
stake_amount: str
|
stake_amount: str
|
||||||
|
|||||||
@@ -136,6 +136,7 @@ class RPC:
|
|||||||
"strategy_version": strategy_version,
|
"strategy_version": strategy_version,
|
||||||
"dry_run": config["dry_run"],
|
"dry_run": config["dry_run"],
|
||||||
"trading_mode": config.get("trading_mode", "spot"),
|
"trading_mode": config.get("trading_mode", "spot"),
|
||||||
|
"margin_mode": config.get("margin_mode", ""),
|
||||||
"short_allowed": config.get("trading_mode", "spot") != "spot",
|
"short_allowed": config.get("trading_mode", "spot") != "spot",
|
||||||
"stake_currency": config["stake_currency"],
|
"stake_currency": config["stake_currency"],
|
||||||
"stake_currency_decimals": decimals_per_coin(config["stake_currency"]),
|
"stake_currency_decimals": decimals_per_coin(config["stake_currency"]),
|
||||||
|
|||||||
Reference in New Issue
Block a user