edeng23 / binance-trade-bot

Automated cryptocurrency trading bot
GNU General Public License v3.0
7.76k stars 2.17k forks source link

crypto_trading_logger - ERROR - Error while scouting... #242

Open enri90 opened 3 years ago

enri90 commented 3 years ago

On Docker Setup I found myself with this error what should I do? great project nice work!

2021-03-26 01:09:35,336 - crypto_trading_logger - ERROR - Error while scouting... Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 699, in urlopen httplib_response = self._make_request( File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 445, in _make_request six.raise_from(e, None) File "", line 3, in raise_from File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 440, in _make_request httplib_response = conn.getresponse() File "/usr/local/lib/python3.8/http/client.py", line 1347, in getresponse response.begin() File "/usr/local/lib/python3.8/http/client.py", line 307, in begin version, status, reason = self._read_status() File "/usr/local/lib/python3.8/http/client.py", line 276, in _read_status raise RemoteDisconnected("Remote end closed connection without" http.client.RemoteDisconnected: Remote end closed connection without response

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 439, in send resp = conn.urlopen( File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 755, in urlopen retries = retries.increment( File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 532, in increment raise six.reraise(type(error), error, _stacktrace) File "/usr/local/lib/python3.8/site-packages/urllib3/packages/six.py", line 734, in reraise raise value.with_traceback(tb) File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 699, in urlopen httplib_response = self._make_request( File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 445, in _make_request six.raise_from(e, None) File "", line 3, in raise_from File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 440, in _make_request httplib_response = conn.getresponse() File "/usr/local/lib/python3.8/http/client.py", line 1347, in getresponse response.begin() File "/usr/local/lib/python3.8/http/client.py", line 307, in begin version, status, reason = self._read_status() File "/usr/local/lib/python3.8/http/client.py", line 276, in _read_status raise RemoteDisconnected("Remote end closed connection without" urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/app/binance_trade_bot/scheduler.py", line 25, in _run_job super()._run_job(job) File "/usr/local/lib/python3.8/site-packages/schedule/init.py", line 147, in _run_job ret = job.run() File "/usr/local/lib/python3.8/site-packages/schedule/init.py", line 491, in run ret = self.job_func() File "/app/binance_trade_bot/strategies/default_strategy.py", line 41, in scout self._jump_to_best_coin(current_coin, current_coin_price, all_tickers) File "/app/binance_trade_bot/auto_trader.py", line 129, in _jump_to_best_coin ratio_dict = self._get_ratios(coin, coin_price, all_tickers) File "/app/binance_trade_bot/auto_trader.py", line 116, in _get_ratios transaction_fee = self.manager.get_fee(pair.from_coin, self.config.BRIDGE, True) + self.manager.get_fee( File "/app/binance_trade_bot/binance_api_manager.py", line 52, in get_fee bnb_balance = self.get_currency_balance("BNB") File "/app/binance_trade_bot/binance_api_manager.py", line 76, in get_currency_balance for currency_balance in self.binance_client.get_account()["balances"]: File "/usr/local/lib/python3.8/site-packages/binance/client.py", line 1767, in get_account return self._get('account', True, data=params) File "/usr/local/lib/python3.8/site-packages/binance/client.py", line 237, in _get return self._request_api('get', path, signed, version, kwargs) File "/usr/local/lib/python3.8/site-packages/binance/client.py", line 202, in _request_api return self._request(method, uri, signed, kwargs) File "/usr/local/lib/python3.8/site-packages/binance/client.py", line 196, in _request self.response = getattr(self.session, method)(uri, kwargs) File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 555, in get return self.request('GET', url, kwargs) File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 542, in request resp = self.send(prep, send_kwargs) File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 655, in send r = adapter.send(request, kwargs) File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 498, in send raise ConnectionError(err, request=request) requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

enri90 commented 3 years ago

`2021-03-26 07:48:51,871 - crypto_trading_logger - ERROR - Error while updating value history... Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 169, in _new_conn conn = connection.create_connection( File "/usr/local/lib/python3.8/site-packages/urllib3/util/connection.py", line 96, in create_connection raise err File "/usr/local/lib/python3.8/site-packages/urllib3/util/connection.py", line 86, in create_connection sock.connect(sa) ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 699, in urlopen httplib_response = self._make_request( File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 382, in _make_request self._validate_conn(conn) File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn conn.connect() File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 353, in connect conn = self._new_conn() File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 181, in _new_conn raise NewConnectionError( urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fe639b1bf70>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 439, in send resp = conn.urlopen( File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 755, in urlopen retries = retries.increment( File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 574, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.binance.com', port=443): Max retries exceeded with url: /api/v3/ticker/price (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fe639b1bf70>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/app/binance_trade_bot/scheduler.py", line 25, in _run_job super()._run_job(job) File "/usr/local/lib/python3.8/site-packages/schedule/init.py", line 147, in _run_job ret = job.run() File "/usr/local/lib/python3.8/site-packages/schedule/init.py", line 491, in run ret = self.job_func() File "/app/binance_trade_bot/auto_trader.py", line 166, in update_values all_ticker_values = self.manager.get_all_market_tickers() File "/app/binance_trade_bot/binance_api_manager.py", line 61, in get_all_market_tickers return self.binance_client.get_all_tickers() File "/usr/local/lib/python3.8/site-packages/binance/client.py", line 437, in get_all_tickers return self._get('ticker/price', version=self.PRIVATE_API_VERSION) File "/usr/local/lib/python3.8/site-packages/binance/client.py", line 237, in _get return self._request_api('get', path, signed, version, kwargs) File "/usr/local/lib/python3.8/site-packages/binance/client.py", line 202, in _request_api return self._request(method, uri, signed, kwargs) File "/usr/local/lib/python3.8/site-packages/binance/client.py", line 196, in _request self.response = getattr(self.session, method)(uri, kwargs) File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 555, in get return self.request('GET', url, kwargs) File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 542, in request resp = self.send(prep, send_kwargs) File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 655, in send r = adapter.send(request, kwargs) File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 516, in send raise ConnectionError(e, request=request) requests.exceptions.ConnectionError: HTTPSConnectionPool(host='api.binance.com', port=443): Max retries exceeded with url: /api/v3/ticker/price (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fe639b1bf70>: Failed to establish a new connection: [Errno 111] Connection refused'))

`

Dan-Wood commented 3 years ago

Your connection was refused. Check your API and secret keys.

enri90 commented 3 years ago

works perfectly in the beginning after 1 hour it starts having connection problems responding with status 443

I was reading around could it be the time difference? https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md#timing-security

enri90 commented 3 years ago

apparently the reason seems to be bridge_scout the problem of disconnection from the socket the time to complete a full cycle of all altcoins takes longer than the time set in user.cfg

the more crypto you select, the longer the analysis time will be

edeng23 commented 3 years ago

@enri90 how many coins are you working with?

ayoze commented 3 years ago

Hello everybody,

I got the same "Error while updating value history" as @enri90 and the bot seems to be stucked in the VET coin (it made some transactions the past days - starting with ADA). Here is my stack trace:

`2021-03-31 06:58:40,397 - crypto_trading_logger - ERROR - Error while updating value history...SDT Traceback (most recent call last): File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 598, in urlopen httplib_response = self._make_request(conn, method, url, File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 387, in _make_request six.raise_from(e, None) File "", line 3, in raise_from File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 383, in _make_request httplib_response = conn.getresponse() File "/usr/lib/python3.8/http/client.py", line 1322, in getresponse response.begin() File "/usr/lib/python3.8/http/client.py", line 303, in begin version, status, reason = self._read_status() File "/usr/lib/python3.8/http/client.py", line 264, in _read_status line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") File "/usr/lib/python3.8/socket.py", line 669, in readinto return self._sock.recv_into(b) File "/usr/lib/python3.8/ssl.py", line 1241, in recv_into return self.read(nbytes, buffer) File "/usr/lib/python3.8/ssl.py", line 1099, in read return self._sslobj.read(len, buffer) ConnectionResetError: [Errno 104] Connection reset by peer

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/ayoze/.local/lib/python3.8/site-packages/requests/adapters.py", line 439, in send resp = conn.urlopen( File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen retries = retries.increment(method, url, error=e, _pool=self, File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 367, in increment raise six.reraise(type(error), error, _stacktrace) File "/usr/lib/python3/dist-packages/six.py", line 692, in reraise raise value.with_traceback(tb) File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 598, in urlopen httplib_response = self._make_request(conn, method, url, File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 387, in _make_request six.raise_from(e, None) File "", line 3, in raise_from File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 383, in _make_request httplib_response = conn.getresponse() File "/usr/lib/python3.8/http/client.py", line 1322, in getresponse response.begin() File "/usr/lib/python3.8/http/client.py", line 303, in begin version, status, reason = self._read_status() File "/usr/lib/python3.8/http/client.py", line 264, in _read_status line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") File "/usr/lib/python3.8/socket.py", line 669, in readinto return self._sock.recv_into(b) File "/usr/lib/python3.8/ssl.py", line 1241, in recv_into return self.read(nbytes, buffer) File "/usr/lib/python3.8/ssl.py", line 1099, in read return self._sslobj.read(len, buffer) urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/ayoze/cryptos/binance-trade-bot/binance_trade_bot/scheduler.py", line 25, in _run_job super()._run_job(job) File "/home/ayoze/.local/lib/python3.8/site-packages/schedule/init.py", line 147, in _run_job ret = job.run() File "/home/ayoze/.local/lib/python3.8/site-packages/schedule/init.py", line 491, in run ret = self.job_func() File "/home/ayoze/cryptos/binance-trade-bot/binance_trade_bot/auto_trader.py", line 174, in update_values balance = self.manager.get_currency_balance(coin.symbol) File "/home/ayoze/cryptos/binance-trade-bot/binance_trade_bot/binance_api_manager.py", line 76, in get_currency_balance for currency_balance in self.binance_client.get_account()["balances"]: File "/home/ayoze/.local/lib/python3.8/site-packages/binance/client.py", line 1767, in get_account return self._get('account', True, data=params) File "/home/ayoze/.local/lib/python3.8/site-packages/binance/client.py", line 237, in _get return self._request_api('get', path, signed, version, kwargs) File "/home/ayoze/.local/lib/python3.8/site-packages/binance/client.py", line 202, in _request_api return self._request(method, uri, signed, kwargs) File "/home/ayoze/.local/lib/python3.8/site-packages/binance/client.py", line 196, in _request self.response = getattr(self.session, method)(uri, kwargs) File "/home/ayoze/.local/lib/python3.8/site-packages/requests/sessions.py", line 555, in get return self.request('GET', url, kwargs) File "/home/ayoze/.local/lib/python3.8/site-packages/requests/sessions.py", line 542, in request resp = self.send(prep, send_kwargs) File "/home/ayoze/.local/lib/python3.8/site-packages/requests/sessions.py", line 655, in send r = adapter.send(request, kwargs) File "/home/ayoze/.local/lib/python3.8/site-packages/requests/adapters.py", line 498, in send raise ConnectionError(err, request=request) requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))

2021-03-31 07:51:12,417 - crypto_trading_logger - ERROR - Error while scouting...ent coin: VETUSDT Traceback (most recent call last): File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 598, in urlopen httplib_response = self._make_request(conn, method, url, File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 387, in _make_request six.raise_from(e, None) File "", line 3, in raise_from File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 383, in _make_request httplib_response = conn.getresponse() File "/usr/lib/python3.8/http/client.py", line 1322, in getresponse response.begin() File "/usr/lib/python3.8/http/client.py", line 303, in begin version, status, reason = self._read_status() File "/usr/lib/python3.8/http/client.py", line 264, in _read_status line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") File "/usr/lib/python3.8/socket.py", line 669, in readinto return self._sock.recv_into(b) File "/usr/lib/python3.8/ssl.py", line 1241, in recv_into return self.read(nbytes, buffer) File "/usr/lib/python3.8/ssl.py", line 1099, in read return self._sslobj.read(len, buffer) ConnectionResetError: [Errno 104] Connection reset by peer

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/ayoze/.local/lib/python3.8/site-packages/requests/adapters.py", line 439, in send resp = conn.urlopen( File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen retries = retries.increment(method, url, error=e, _pool=self, File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 367, in increment raise six.reraise(type(error), error, _stacktrace) File "/usr/lib/python3/dist-packages/six.py", line 692, in reraise raise value.with_traceback(tb) File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 598, in urlopen httplib_response = self._make_request(conn, method, url, File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 387, in _make_request six.raise_from(e, None) File "", line 3, in raise_from File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 383, in _make_request httplib_response = conn.getresponse() File "/usr/lib/python3.8/http/client.py", line 1322, in getresponse response.begin() File "/usr/lib/python3.8/http/client.py", line 303, in begin version, status, reason = self._read_status() File "/usr/lib/python3.8/http/client.py", line 264, in _read_status line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") File "/usr/lib/python3.8/socket.py", line 669, in readinto return self._sock.recv_into(b) File "/usr/lib/python3.8/ssl.py", line 1241, in recv_into return self.read(nbytes, buffer) File "/usr/lib/python3.8/ssl.py", line 1099, in read return self._sslobj.read(len, buffer) urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/ayoze/cryptos/binance-trade-bot/binance_trade_bot/scheduler.py", line 25, in _run_job super()._run_job(job) File "/home/ayoze/.local/lib/python3.8/site-packages/schedule/init.py", line 147, in _run_job ret = job.run() File "/home/ayoze/.local/lib/python3.8/site-packages/schedule/init.py", line 491, in run ret = self.job_func() File "/home/ayoze/cryptos/binance-trade-bot/binance_trade_bot/strategies/default_strategy.py", line 41, in scout self._jump_to_best_coin(current_coin, current_coin_price, all_tickers) File "/home/ayoze/cryptos/binance-trade-bot/binance_trade_bot/auto_trader.py", line 129, in _jump_to_best_coin ratio_dict = self._get_ratios(coin, coin_price, all_tickers) File "/home/ayoze/cryptos/binance-trade-bot/binance_trade_bot/auto_trader.py", line 116, in _get_ratios transaction_fee = self.manager.get_fee(pair.from_coin, self.config.BRIDGE, True) + self.manager.get_fee( File "/home/ayoze/cryptos/binance-trade-bot/binance_trade_bot/binance_api_manager.py", line 36, in get_fee if not self.get_using_bnb_for_fees(): File "/home/ayoze/.local/lib/python3.8/site-packages/cachetools/decorators.py", line 22, in wrapper v = func(*args, kwargs) File "/home/ayoze/cryptos/binance-trade-bot/binance_trade_bot/binance_api_manager.py", line 32, in get_using_bnb_for_fees return self.binance_client.get_bnb_burn_spot_margin()["spotBNBBurn"] File "/home/ayoze/.local/lib/python3.8/site-packages/binance/client.py", line 2819, in get_bnb_burn_spot_margin return self._request_margin_api('get', 'bnbBurn', signed=True, data=params) File "/home/ayoze/.local/lib/python3.8/site-packages/binance/client.py", line 212, in _request_margin_api return self._request(method, uri, signed, kwargs) File "/home/ayoze/.local/lib/python3.8/site-packages/binance/client.py", line 196, in _request self.response = getattr(self.session, method)(uri, kwargs) File "/home/ayoze/.local/lib/python3.8/site-packages/requests/sessions.py", line 555, in get return self.request('GET', url, kwargs) File "/home/ayoze/.local/lib/python3.8/site-packages/requests/sessions.py", line 542, in request resp = self.send(prep, send_kwargs) File "/home/ayoze/.local/lib/python3.8/site-packages/requests/sessions.py", line 655, in send r = adapter.send(request, kwargs) File "/home/ayoze/.local/lib/python3.8/site-packages/requests/adapters.py", line 498, in send raise ConnectionError(err, request=request) requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))

2021-03-31 09:12:35.275820 - CONSOLE - INFO - I am scouting the best trades. Current coin: VETUSDT`

molivramento commented 3 years ago

I'm also getting this error, even with 4 currencies selected

Dan-Wood commented 3 years ago

requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))

This is probably due to too many API calls

ayoze commented 3 years ago

I have tried to set a smaller set of usable coins but it gets stucked anyway.

MertalpTasdelen commented 3 years ago

Hello I have the same exception but it will manage the keep going eventually. I tried also small set of crypto currency but didn't solve.

crewsycrews commented 3 years ago

Hello everyone! Same here.

e1001925 commented 3 years ago

me too

nonforma commented 3 years ago

Same, ended up manually setting base_fee to .001 and removing the call to get_trade_fees() as a temporary workaround.

rel-s commented 3 years ago

Yeah, we have a PR that's supposed to fix this by making the fee configurable.

DDDora-emon1 commented 3 years ago

2021-06-06 15:48:44,740 - crypto_trading_logger - ERROR - Error while scouting... Traceback (most recent call last): File "D:\Program Files\Python38\lib\site-packages\urllib3\connectionpool.py", line 699, in urlopen httplib_response = self._make_request( File "D:\Program Files\Python38\lib\site-packages\urllib3\connectionpool.py", line 445, in _make_request six.raise_from(e, None) File "", line 3, in raise_from File "D:\Program Files\Python38\lib\site-packages\urllib3\connectionpool.py", line 440, in _make_request httplib_response = conn.getresponse() File "D:\Program Files\Python38\lib\http\client.py", line 1344, in getresponse response.begin() File "D:\Program Files\Python38\lib\http\client.py", line 307, in begin version, status, reason = self._read_status() File "D:\Program Files\Python38\lib\http\client.py", line 276, in _read_status raise RemoteDisconnected("Remote end closed connection without" http.client.RemoteDisconnected: Remote end closed connection without response

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "D:\Program Files\Python38\lib\site-packages\requests\adapters.py", line 439, in send resp = conn.urlopen( File "D:\Program Files\Python38\lib\site-packages\urllib3\connectionpool.py", line 755, in urlopen retries = retries.increment( File "D:\Program Files\Python38\lib\site-packages\urllib3\util\retry.py", line 574, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.binance.com', port=443): Max retries exceeded with url: /api/v3/account?timestamp=1622965716728&signature=9e501343db8c7ddb830c26ed99fbff752791476494cc76f77982562a80d07942 (Caused by ProxyError('Cannot connect to proxy.', RemoteDisconnected('Remote end closed connection without response')))

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "D:\gsc\Binance_bot\binance_trade_bot\scheduler.py", line 25, in _run_job super()._run_job(job) File "D:\Program Files\Python38\lib\site-packages\schedule__init.py", line 147, in _run_job ret = job.run() File "D:\Program Files\Python38\lib\site-packages\schedule\init__.py", line 491, in run ret = self.job_func() File "D:\gsc\Binance_bot\binance_trade_bot\strategies\default_strategy.py", line 34, in scout self._jump_to_best_coin(current_coin, current_coin_price, all_tickers) File "D:\gsc\Binance_bot\binance_trade_bot\auto_trader.py", line 140, in _jump_to_best_coin ratio_dict = self._get_ratios(coin, coin_price, all_tickers) File "D:\gsc\Binance_bot\binance_trade_bot\auto_trader.py", line 127, in _get_ratios transaction_fee = self.manager.get_fee(pair.from_coin, self.config.BRIDGE, True) + self.manager.get_fee( File "D:\gsc\Binance_bot\binance_trade_bot\binance_api_manager.py", line 50, in get_fee self._sell_quantity(origin_coin.symbol, target_coin.symbol) File "D:\gsc\Binance_bot\binance_trade_bot\binance_api_manager.py", line 264, in _sell_quantity origin_balance = origin_balance or self.get_currency_balance(origin_symbol) File "D:\gsc\Binance_bot\binance_trade_bot\binance_api_manager.py", line 92, in get_currency_balance for currency_balance in self.binance_client.get_account()["balances"]: File "D:\Program Files\Python38\lib\site-packages\binance\client.py", line 1822, in get_account return self._get('account', True, data=params) File "D:\Program Files\Python38\lib\site-packages\binance\client.py", line 292, in _get return self._request_api('get', path, signed, version, kwargs) File "D:\Program Files\Python38\lib\site-packages\binance\client.py", line 242, in _request_api return self._request(method, uri, signed, kwargs) File "D:\Program Files\Python38\lib\site-packages\binance\client.py", line 236, in _request self.response = getattr(self.session, method)(uri, kwargs) File "D:\Program Files\Python38\lib\site-packages\requests\sessions.py", line 555, in get return self.request('GET', url, kwargs) File "D:\Program Files\Python38\lib\site-packages\requests\sessions.py", line 542, in request resp = self.send(prep, send_kwargs) File "D:\Program Files\Python38\lib\site-packages\requests\sessions.py", line 655, in send r = adapter.send(request, kwargs) File "D:\Program Files\Python38\lib\site-packages\requests\adapters.py", line 510, in send raise ProxyError(e, request=request) requests.exceptions.ProxyError: HTTPSConnectionPool(host='api.binance.com', port=443): Max retries exceeded with url: /api/v3/account?timestamp=1622965716728&signature=9e501343db8c7ddb830c26ed99fbff752791476494cc76f77982562a80d07942 (Caused by ProxyError('Cannot connect to proxy.', RemoteDisconnected('Remote end closed connection without response')))

DDDora-emon1 commented 3 years ago

I'm get this error

safciplak commented 2 years ago

i'm facing same issue.