ccxt icon indicating copy to clipboard operation
ccxt copied to clipboard

Can't load binance

Open stash86 opened this issue 9 months ago • 1 comments

Operating System

Ubuntu 22.04

Programming Languages

Python

CCXT Version

4.3.22

Description

Get this error when trying to start the bot

  File "/home/ubuntu/freqtrade/.venv/lib/python3.11/site-packages/ccxt/binance.py", line 9321, in fetch_positions
    return self.fetch_positions_risk(symbols, params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ubuntu/freqtrade/.venv/lib/python3.11/site-packages/ccxt/binance.py", line 9393, in fetch_positions_risk
    self.load_leverage_brackets(False, params)
  File "/home/ubuntu/freqtrade/.venv/lib/python3.11/site-packages/ccxt/binance.py", line 9041, in load_leverage_brackets
    return self.options['leverageBrackets']
           ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
KeyError: 'leverageBrackets'

Downgrading to 4.3.16 fixed the issue.

Code

  

stash86 avatar May 15 '24 01:05 stash86

This might be the cause? https://github.com/ccxt/ccxt/commit/1b84c429515634b42144c032dcb9174a3e93ea78#diff-2aff90032c37118652e9734d049a0f915e110af83751d012c42ee3a64bb96065

stash86 avatar May 15 '24 01:05 stash86

@stash86 thanks, we'll fix this asap.

sc0Vu avatar May 15 '24 03:05 sc0Vu