moved leverage_brackets.json to exchange/binance_leverage_brackets.json
This commit is contained in:
parent
2c21bbfa0c
commit
979c6f2f26
@ -149,7 +149,9 @@ class Binance(Exchange):
|
|||||||
if self.trading_mode == TradingMode.FUTURES:
|
if self.trading_mode == TradingMode.FUTURES:
|
||||||
try:
|
try:
|
||||||
if self._config['dry_run']:
|
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:
|
with open(leverage_brackets_path) as json_file:
|
||||||
leverage_brackets = json.load(json_file)
|
leverage_brackets = json.load(json_file)
|
||||||
else:
|
else:
|
||||||
@ -187,7 +189,7 @@ class Binance(Exchange):
|
|||||||
max_lev = 1/margin_req
|
max_lev = 1/margin_req
|
||||||
return max_lev
|
return max_lev
|
||||||
|
|
||||||
@retrier
|
@ retrier
|
||||||
def _set_leverage(
|
def _set_leverage(
|
||||||
self,
|
self,
|
||||||
leverage: float,
|
leverage: float,
|
||||||
|
Loading…
Reference in New Issue
Block a user