feat: make proxy_coin dynamic (config setting)

This commit is contained in:
Matthias
2024-12-17 19:30:15 +01:00
parent c5f89f34fd
commit c492dcc7ba
2 changed files with 5 additions and 1 deletions

View File

@@ -40,6 +40,10 @@ CONF_SCHEMA = {
),
"type": "string",
},
"proxy_coin": {
"description": "Proxy coin - must be used for specific futures modes (e.g. BNFCR)",
"type": "string",
},
"stake_currency": {
"description": "Currency used for staking.",
"type": "string",

View File

@@ -68,7 +68,7 @@ class Binance(Exchange):
:return: Proxy coin or stake currency
"""
if self.margin_mode == MarginMode.CROSS:
return "BNFCR"
return self._config.get("proxy_coin", self._config["stake_currency"])
return self._config["stake_currency"]
def get_tickers(