moved leverage_brackets.json to exchange/binance_leverage_brackets.json

This commit is contained in:
Sam Germain 2021-09-18 03:49:15 -06:00
parent 2c21bbfa0c
commit 979c6f2f26
2 changed files with 4 additions and 2 deletions

View File

@ -149,7 +149,9 @@ class Binance(Exchange):
if self.trading_mode == TradingMode.FUTURES:
try:
if self._config['dry_run']:
leverage_brackets_path = Path('freqtrade/data') / 'leverage_brackets.json'
leverage_brackets_path = (
Path(__file__).parent / 'binance_leverage_brackets.json'
)
with open(leverage_brackets_path) as json_file:
leverage_brackets = json.load(json_file)
else:
@ -187,7 +189,7 @@ class Binance(Exchange):
max_lev = 1/margin_req
return max_lev
@retrier
@ retrier
def _set_leverage(
self,
leverage: float,