mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 08:33:07 +00:00
feat: make proxy_coin dynamic (config setting)
This commit is contained in:
@@ -40,6 +40,10 @@ CONF_SCHEMA = {
|
|||||||
),
|
),
|
||||||
"type": "string",
|
"type": "string",
|
||||||
},
|
},
|
||||||
|
"proxy_coin": {
|
||||||
|
"description": "Proxy coin - must be used for specific futures modes (e.g. BNFCR)",
|
||||||
|
"type": "string",
|
||||||
|
},
|
||||||
"stake_currency": {
|
"stake_currency": {
|
||||||
"description": "Currency used for staking.",
|
"description": "Currency used for staking.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ class Binance(Exchange):
|
|||||||
:return: Proxy coin or stake currency
|
:return: Proxy coin or stake currency
|
||||||
"""
|
"""
|
||||||
if self.margin_mode == MarginMode.CROSS:
|
if self.margin_mode == MarginMode.CROSS:
|
||||||
return "BNFCR"
|
return self._config.get("proxy_coin", self._config["stake_currency"])
|
||||||
return self._config["stake_currency"]
|
return self._config["stake_currency"]
|
||||||
|
|
||||||
def get_tickers(
|
def get_tickers(
|
||||||
|
|||||||
Reference in New Issue
Block a user