We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6f58cd commit f711afdCopy full SHA for f711afd
freqtrade/exchange/exchange.py
@@ -989,6 +989,8 @@ def _get_stake_amount_limit(
989
except KeyError:
990
raise ValueError(f"Can't get market information for symbol {pair}")
991
992
+ stake_limits = []
993
+ limits = market["limits"]
994
if isMin:
995
# reserve some percent defined in config (5% default) + stoploss
996
margin_reserve: float = 1.0 + self._config.get(
@@ -1001,8 +1003,6 @@ def _get_stake_amount_limit(
1001
1003
margin_reserve = 1.0
1002
1004
stoploss_reserve = 1.0
1005
- stake_limits = []
- limits = market["limits"]
1006
if limits["cost"][limit] is not None:
1007
stake_limits.append(
1008
self._contracts_to_amount(pair, limits["cost"][limit]) * stoploss_reserve
0 commit comments