Skip to content

Commit a049d6e

Browse files
committed
feat: add magin_mode to show_config response
1 parent 61f46b9 commit a049d6e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

freqtrade/rpc/api_server/api_schemas.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ class ShowConfig(BaseModel):
229229
api_version: float
230230
dry_run: bool
231231
trading_mode: str
232+
margin_mode: str
232233
short_allowed: bool
233234
stake_currency: str
234235
stake_amount: str

freqtrade/rpc/rpc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ def _rpc_show_config(
136136
"strategy_version": strategy_version,
137137
"dry_run": config["dry_run"],
138138
"trading_mode": config.get("trading_mode", "spot"),
139+
"margin_mode": config.get("margin_mode", ""),
139140
"short_allowed": config.get("trading_mode", "spot") != "spot",
140141
"stake_currency": config["stake_currency"],
141142
"stake_currency_decimals": decimals_per_coin(config["stake_currency"]),

0 commit comments

Comments
 (0)