Created
February 17, 2018 01:46
-
-
Save alexbrillant/07a4c43706ad7e3c39e63d3a33e6c97a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Exception in thread Thread-8078: | |
Traceback (most recent call last): | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/contrib/pyopenssl.py", line 441, in wrap_socket | |
cnx.do_handshake() | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/OpenSSL/SSL.py", line 1806, in do_handshake | |
self._raise_ssl_error(self._ssl, result) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/OpenSSL/SSL.py", line 1538, in _raise_ssl_error | |
raise SysCallError(errno, errorcode.get(errno)) | |
OpenSSL.SSL.SysCallError: (54, 'ECONNRESET') | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 601, in urlopen | |
chunked=chunked) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 346, in _make_request | |
self._validate_conn(conn) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 850, in _validate_conn | |
conn.connect() | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connection.py", line 326, in connect | |
ssl_context=context) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/util/ssl_.py", line 329, in ssl_wrap_socket | |
return context.wrap_socket(sock, server_hostname=server_hostname) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/contrib/pyopenssl.py", line 448, in wrap_socket | |
raise ssl.SSLError('bad handshake: %r' % e) | |
ssl.SSLError: ("bad handshake: SysCallError(54, 'ECONNRESET')",) | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/adapters.py", line 440, in send | |
timeout=timeout | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 639, in urlopen | |
_stacktrace=sys.exc_info()[2]) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/util/retry.py", line 388, in increment | |
raise MaxRetryError(_pool, url, error or ResponseError(cause)) | |
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.cryptocompare.com', port=443): Max retries exceeded with url: /api/data/coinsnapshot?fsym=&tsym=BTC (Caused by SSLError(SSLError("bad handshake: SysCallError(54, 'ECONNRESET')",),)) | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 916, in _bootstrap_inner | |
self.run() | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 1182, in run | |
self.function(*self.args, **self.kwargs) | |
File "/Users/alexandre/Documents/trading-bot/Util.py", line 17, in _run | |
self.function(*self.args, **self.kwargs) | |
File "/Users/alexandre/Documents/trading-bot/cryptocompare/CryptoCompareStream.py", line 24, in fetch_aggregated_data | |
api_message = coin.get_coin_snapshot(self.asset, self.market_asset) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/cryptocompy/coin.py", line 99, in get_coin_snapshot | |
data = load_data(url)['Data'] | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/cryptocompy/helper_functions.py", line 74, in load_data | |
r = requests.get(url) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/api.py", line 72, in get | |
return request('get', url, params=params, **kwargs) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/api.py", line 58, in request | |
return session.request(method=method, url=url, **kwargs) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/sessions.py", line 508, in request | |
resp = self.send(prep, **send_kwargs) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/sessions.py", line 618, in send | |
r = adapter.send(request, **kwargs) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/adapters.py", line 506, in send | |
raise SSLError(e, request=request) | |
requests.exceptions.SSLError: HTTPSConnectionPool(host='www.cryptocompare.com', port=443): Max retries exceeded with url: /api/data/coinsnapshot?fsym=&tsym=BTC (Caused by SSLError(SSLError("bad handshake: SysCallError(54, 'ECONNRESET')",),)) | |
Exception in thread Thread-8076: | |
Traceback (most recent call last): | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 601, in urlopen | |
chunked=chunked) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 387, in _make_request | |
six.raise_from(e, None) | |
File "<string>", line 2, in raise_from | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 383, in _make_request | |
httplib_response = conn.getresponse() | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1331, in getresponse | |
response.begin() | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 297, in begin | |
version, status, reason = self._read_status() | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 258, in _read_status | |
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/socket.py", line 586, in readinto | |
return self._sock.recv_into(b) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/contrib/pyopenssl.py", line 285, in recv_into | |
raise SocketError(str(e)) | |
OSError: (54, 'ECONNRESET') | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/adapters.py", line 440, in send | |
timeout=timeout | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 639, in urlopen | |
_stacktrace=sys.exc_info()[2]) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/util/retry.py", line 357, in increment | |
raise six.reraise(type(error), error, _stacktrace) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/packages/six.py", line 685, in reraise | |
raise value.with_traceback(tb) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 601, in urlopen | |
chunked=chunked) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 387, in _make_request | |
six.raise_from(e, None) | |
File "<string>", line 2, in raise_from | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 383, in _make_request | |
httplib_response = conn.getresponse() | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1331, in getresponse | |
response.begin() | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 297, in begin | |
version, status, reason = self._read_status() | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 258, in _read_status | |
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/socket.py", line 586, in readinto | |
return self._sock.recv_into(b) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/contrib/pyopenssl.py", line 285, in recv_into | |
raise SocketError(str(e)) | |
urllib3.exceptions.ProtocolError: ('Connection aborted.', OSError("(54, 'ECONNRESET')",)) | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 916, in _bootstrap_inner | |
self.run() | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 1182, in run | |
self.function(*self.args, **self.kwargs) | |
File "/Users/alexandre/Documents/trading-bot/Util.py", line 17, in _run | |
self.function(*self.args, **self.kwargs) | |
File "/Users/alexandre/Documents/trading-bot/cryptocompare/CryptoCompareStream.py", line 24, in fetch_aggregated_data | |
api_message = coin.get_coin_snapshot(self.asset, self.market_asset) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/cryptocompy/coin.py", line 99, in get_coin_snapshot | |
data = load_data(url)['Data'] | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/cryptocompy/helper_functions.py", line 74, in load_data | |
r = requests.get(url) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/api.py", line 72, in get | |
return request('get', url, params=params, **kwargs) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/api.py", line 58, in request | |
return session.request(method=method, url=url, **kwargs) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/sessions.py", line 508, in request | |
resp = self.send(prep, **send_kwargs) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/sessions.py", line 618, in send | |
r = adapter.send(request, **kwargs) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/adapters.py", line 490, in send | |
raise ConnectionError(err, request=request) | |
requests.exceptions.ConnectionError: ('Connection aborted.', OSError("(54, 'ECONNRESET')",)) | |
Exception in thread Thread-8075: | |
Traceback (most recent call last): | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 601, in urlopen | |
chunked=chunked) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 387, in _make_request | |
six.raise_from(e, None) | |
File "<string>", line 2, in raise_from | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 383, in _make_request | |
httplib_response = conn.getresponse() | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1331, in getresponse | |
response.begin() | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 297, in begin | |
version, status, reason = self._read_status() | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 258, in _read_status | |
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/socket.py", line 586, in readinto | |
return self._sock.recv_into(b) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/contrib/pyopenssl.py", line 285, in recv_into | |
raise SocketError(str(e)) | |
OSError: (54, 'ECONNRESET') | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/adapters.py", line 440, in send | |
timeout=timeout | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 639, in urlopen | |
_stacktrace=sys.exc_info()[2]) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/util/retry.py", line 357, in increment | |
raise six.reraise(type(error), error, _stacktrace) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/packages/six.py", line 685, in reraise | |
raise value.with_traceback(tb) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 601, in urlopen | |
chunked=chunked) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 387, in _make_request | |
six.raise_from(e, None) | |
File "<string>", line 2, in raise_from | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 383, in _make_request | |
httplib_response = conn.getresponse() | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1331, in getresponse | |
response.begin() | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 297, in begin | |
version, status, reason = self._read_status() | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 258, in _read_status | |
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/socket.py", line 586, in readinto | |
return self._sock.recv_into(b) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/contrib/pyopenssl.py", line 285, in recv_into | |
raise SocketError(str(e)) | |
urllib3.exceptions.ProtocolError: ('Connection aborted.', OSError("(54, 'ECONNRESET')",)) | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 916, in _bootstrap_inner | |
self.run() | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 1182, in run | |
self.function(*self.args, **self.kwargs) | |
File "/Users/alexandre/Documents/trading-bot/Util.py", line 17, in _run | |
self.function(*self.args, **self.kwargs) | |
File "/Users/alexandre/Documents/trading-bot/cryptocompare/CryptoCompareStream.py", line 24, in fetch_aggregated_data | |
api_message = coin.get_coin_snapshot(self.asset, self.market_asset) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/cryptocompy/coin.py", line 99, in get_coin_snapshot | |
data = load_data(url)['Data'] | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/cryptocompy/helper_functions.py", line 74, in load_data | |
r = requests.get(url) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/api.py", line 72, in get | |
return request('get', url, params=params, **kwargs) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/api.py", line 58, in request | |
return session.request(method=method, url=url, **kwargs) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/sessions.py", line 508, in request | |
resp = self.send(prep, **send_kwargs) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/sessions.py", line 618, in send | |
r = adapter.send(request, **kwargs) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/adapters.py", line 490, in send | |
raise ConnectionError(err, request=request) | |
requests.exceptions.ConnectionError: ('Connection aborted.', OSError("(54, 'ECONNRESET')",)) | |
Exception in thread Thread-8079: | |
Traceback (most recent call last): | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/contrib/pyopenssl.py", line 441, in wrap_socket | |
cnx.do_handshake() | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/OpenSSL/SSL.py", line 1806, in do_handshake | |
self._raise_ssl_error(self._ssl, result) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/OpenSSL/SSL.py", line 1538, in _raise_ssl_error | |
raise SysCallError(errno, errorcode.get(errno)) | |
OpenSSL.SSL.SysCallError: (50, 'ENETDOWN') | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 601, in urlopen | |
chunked=chunked) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 346, in _make_request | |
self._validate_conn(conn) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 850, in _validate_conn | |
conn.connect() | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connection.py", line 326, in connect | |
ssl_context=context) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/util/ssl_.py", line 329, in ssl_wrap_socket | |
return context.wrap_socket(sock, server_hostname=server_hostname) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/contrib/pyopenssl.py", line 448, in wrap_socket | |
raise ssl.SSLError('bad handshake: %r' % e) | |
ssl.SSLError: ("bad handshake: SysCallError(50, 'ENETDOWN')",) | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/adapters.py", line 440, in send | |
timeout=timeout | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 639, in urlopen | |
_stacktrace=sys.exc_info()[2]) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/util/retry.py", line 388, in increment | |
raise MaxRetryError(_pool, url, error or ResponseError(cause)) | |
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.cryptocompare.com', port=443): Max retries exceeded with url: /api/data/coinsnapshot?fsym=&tsym=BTC (Caused by SSLError(SSLError("bad handshake: SysCallError(50, 'ENETDOWN')",),)) | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 916, in _bootstrap_inner | |
self.run() | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 1182, in run | |
self.function(*self.args, **self.kwargs) | |
File "/Users/alexandre/Documents/trading-bot/Util.py", line 17, in _run | |
self.function(*self.args, **self.kwargs) | |
File "/Users/alexandre/Documents/trading-bot/cryptocompare/CryptoCompareStream.py", line 24, in fetch_aggregated_data | |
api_message = coin.get_coin_snapshot(self.asset, self.market_asset) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/cryptocompy/coin.py", line 99, in get_coin_snapshot | |
data = load_data(url)['Data'] | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/cryptocompy/helper_functions.py", line 74, in load_data | |
r = requests.get(url) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/api.py", line 72, in get | |
return request('get', url, params=params, **kwargs) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/api.py", line 58, in request | |
return session.request(method=method, url=url, **kwargs) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/sessions.py", line 508, in request | |
resp = self.send(prep, **send_kwargs) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/sessions.py", line 618, in send | |
r = adapter.send(request, **kwargs) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/adapters.py", line 506, in send | |
raise SSLError(e, request=request) | |
requests.exceptions.SSLError: HTTPSConnectionPool(host='www.cryptocompare.com', port=443): Max retries exceeded with url: /api/data/coinsnapshot?fsym=&tsym=BTC (Caused by SSLError(SSLError("bad handshake: SysCallError(50, 'ENETDOWN')",),)) | |
Exception in thread Thread-8077: | |
Traceback (most recent call last): | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 601, in urlopen | |
chunked=chunked) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 387, in _make_request | |
six.raise_from(e, None) | |
File "<string>", line 2, in raise_from | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 383, in _make_request | |
httplib_response = conn.getresponse() | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1331, in getresponse | |
response.begin() | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 297, in begin | |
version, status, reason = self._read_status() | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 258, in _read_status | |
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/socket.py", line 586, in readinto | |
return self._sock.recv_into(b) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/contrib/pyopenssl.py", line 285, in recv_into | |
raise SocketError(str(e)) | |
OSError: (54, 'ECONNRESET') | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/adapters.py", line 440, in send | |
timeout=timeout | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 639, in urlopen | |
_stacktrace=sys.exc_info()[2]) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/util/retry.py", line 357, in increment | |
raise six.reraise(type(error), error, _stacktrace) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/packages/six.py", line 685, in reraise | |
raise value.with_traceback(tb) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 601, in urlopen | |
chunked=chunked) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 387, in _make_request | |
six.raise_from(e, None) | |
File "<string>", line 2, in raise_from | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 383, in _make_request | |
httplib_response = conn.getresponse() | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1331, in getresponse | |
response.begin() | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 297, in begin | |
version, status, reason = self._read_status() | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 258, in _read_status | |
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/socket.py", line 586, in readinto | |
return self._sock.recv_into(b) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/contrib/pyopenssl.py", line 285, in recv_into | |
raise SocketError(str(e)) | |
urllib3.exceptions.ProtocolError: ('Connection aborted.', OSError("(54, 'ECONNRESET')",)) | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 916, in _bootstrap_inner | |
self.run() | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 1182, in run | |
self.function(*self.args, **self.kwargs) | |
File "/Users/alexandre/Documents/trading-bot/Util.py", line 17, in _run | |
self.function(*self.args, **self.kwargs) | |
File "/Users/alexandre/Documents/trading-bot/cryptocompare/CryptoCompareStream.py", line 24, in fetch_aggregated_data | |
api_message = coin.get_coin_snapshot(self.asset, self.market_asset) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/cryptocompy/coin.py", line 99, in get_coin_snapshot | |
data = load_data(url)['Data'] | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/cryptocompy/helper_functions.py", line 74, in load_data | |
r = requests.get(url) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/api.py", line 72, in get | |
return request('get', url, params=params, **kwargs) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/api.py", line 58, in request | |
return session.request(method=method, url=url, **kwargs) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/sessions.py", line 508, in request | |
resp = self.send(prep, **send_kwargs) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/sessions.py", line 618, in send | |
r = adapter.send(request, **kwargs) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/adapters.py", line 490, in send | |
raise ConnectionError(err, request=request) | |
requests.exceptions.ConnectionError: ('Connection aborted.', OSError("(54, 'ECONNRESET')",)) | |
Exception in thread Thread-107: | |
Traceback (most recent call last): | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 601, in urlopen | |
chunked=chunked) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 387, in _make_request | |
six.raise_from(e, None) | |
File "<string>", line 2, in raise_from | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 383, in _make_request | |
httplib_response = conn.getresponse() | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1331, in getresponse | |
response.begin() | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 297, in begin | |
version, status, reason = self._read_status() | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 258, in _read_status | |
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/socket.py", line 586, in readinto | |
return self._sock.recv_into(b) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/contrib/pyopenssl.py", line 296, in recv_into | |
return self.recv_into(*args, **kwargs) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/contrib/pyopenssl.py", line 285, in recv_into | |
raise SocketError(str(e)) | |
OSError: (54, 'ECONNRESET') | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/adapters.py", line 440, in send | |
timeout=timeout | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 639, in urlopen | |
_stacktrace=sys.exc_info()[2]) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/util/retry.py", line 357, in increment | |
raise six.reraise(type(error), error, _stacktrace) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/packages/six.py", line 685, in reraise | |
raise value.with_traceback(tb) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 601, in urlopen | |
chunked=chunked) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 387, in _make_request | |
six.raise_from(e, None) | |
File "<string>", line 2, in raise_from | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 383, in _make_request | |
httplib_response = conn.getresponse() | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1331, in getresponse | |
response.begin() | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 297, in begin | |
version, status, reason = self._read_status() | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 258, in _read_status | |
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/socket.py", line 586, in readinto | |
return self._sock.recv_into(b) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/contrib/pyopenssl.py", line 296, in recv_into | |
return self.recv_into(*args, **kwargs) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/contrib/pyopenssl.py", line 285, in recv_into | |
raise SocketError(str(e)) | |
urllib3.exceptions.ProtocolError: ('Connection aborted.', OSError("(54, 'ECONNRESET')",)) | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 916, in _bootstrap_inner | |
self.run() | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 864, in run | |
self._target(*self._args, **self._kwargs) | |
File "/Users/alexandre/Documents/trading-bot/Main.py", line 198, in update_bot | |
bot.update() | |
File "/Users/alexandre/Documents/trading-bot/bots/Bot.py", line 99, in update | |
self.cancel_sell_partially_filled_algorithm() | |
File "/Users/alexandre/Documents/trading-bot/bots/BotMarcel.py", line 37, in cancel_sell_partially_filled_algorithm | |
self.cancel_last_order() | |
File "/Users/alexandre/Documents/trading-bot/bots/Bot.py", line 301, in cancel_last_order | |
self.cancel_order(self.last_order()) | |
File "/Users/alexandre/Documents/trading-bot/bots/Bot.py", line 257, in cancel_order | |
self.client.cancel_order(symbol=symbol, orderId=order_id) | |
File "/Users/alexandre/Documents/trading-bot/binance/client.py", line 1281, in cancel_order | |
return self._delete('order', True, data=params) | |
File "/Users/alexandre/Documents/trading-bot/binance/client.py", line 206, in _delete | |
return self._request_api('delete', path, signed, version, **kwargs) | |
File "/Users/alexandre/Documents/trading-bot/binance/client.py", line 171, in _request_api | |
return self._request(method, uri, signed, **kwargs) | |
File "/Users/alexandre/Documents/trading-bot/binance/client.py", line 165, in _request | |
response = getattr(self.session, method)(uri, **kwargs) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/sessions.py", line 587, in delete | |
return self.request('DELETE', url, **kwargs) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/sessions.py", line 508, in request | |
resp = self.send(prep, **send_kwargs) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/sessions.py", line 618, in send | |
r = adapter.send(request, **kwargs) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/adapters.py", line 490, in send | |
raise ConnectionError(err, request=request) | |
requests.exceptions.ConnectionError: ('Connection aborted.', OSError("(54, 'ECONNRESET')",)) | |
Exception in thread Thread-8171: | |
Traceback (most recent call last): | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connection.py", line 141, in _new_conn | |
(self.host, self.port), self.timeout, **extra_kw) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/util/connection.py", line 83, in create_connection | |
raise err | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection | |
sock.connect(sa) | |
OSError: [Errno 50] Network is down | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 601, in urlopen | |
chunked=chunked) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 346, in _make_request | |
self._validate_conn(conn) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 850, in _validate_conn | |
conn.connect() | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connection.py", line 284, in connect | |
conn = self._new_conn() | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connection.py", line 150, in _new_conn | |
self, "Failed to establish a new connection: %s" % e) | |
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x11b5be710>: Failed to establish a new connection: [Errno 50] Network is down | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/adapters.py", line 440, in send | |
timeout=timeout | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 639, in urlopen | |
_stacktrace=sys.exc_info()[2]) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/util/retry.py", line 388, in increment | |
raise MaxRetryError(_pool, url, error or ResponseError(cause)) | |
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.cryptocompare.com', port=443): Max retries exceeded with url: /api/data/coinsnapshot?fsym=&tsym=BTC (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x11b5be710>: Failed to establish a new connection: [Errno 50] Network is down',)) | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 916, in _bootstrap_inner | |
self.run() | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 1182, in run | |
self.function(*self.args, **self.kwargs) | |
File "/Users/alexandre/Documents/trading-bot/Util.py", line 17, in _run | |
self.function(*self.args, **self.kwargs) | |
File "/Users/alexandre/Documents/trading-bot/cryptocompare/CryptoCompareStream.py", line 24, in fetch_aggregated_data | |
api_message = coin.get_coin_snapshot(self.asset, self.market_asset) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/cryptocompy/coin.py", line 99, in get_coin_snapshot | |
data = load_data(url)['Data'] | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/cryptocompy/helper_functions.py", line 74, in load_data | |
r = requests.get(url) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/api.py", line 72, in get | |
return request('get', url, params=params, **kwargs) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/api.py", line 58, in request | |
return session.request(method=method, url=url, **kwargs) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/sessions.py", line 508, in request | |
resp = self.send(prep, **send_kwargs) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/sessions.py", line 618, in send | |
r = adapter.send(request, **kwargs) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/adapters.py", line 508, in send | |
raise ConnectionError(e, request=request) | |
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.cryptocompare.com', port=443): Max retries exceeded with url: /api/data/coinsnapshot?fsym=&tsym=BTC (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x11b5be710>: Failed to establish a new connection: [Errno 50] Network is down',)) | |
Exception in thread Thread-8168: | |
Traceback (most recent call last): | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connection.py", line 141, in _new_conn | |
(self.host, self.port), self.timeout, **extra_kw) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/util/connection.py", line 83, in create_connection | |
raise err | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection | |
sock.connect(sa) | |
OSError: [Errno 50] Network is down | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 601, in urlopen | |
chunked=chunked) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 346, in _make_request | |
self._validate_conn(conn) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 850, in _validate_conn | |
conn.connect() | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connection.py", line 284, in connect | |
conn = self._new_conn() | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connection.py", line 150, in _new_conn | |
self, "Failed to establish a new connection: %s" % e) | |
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x11b441e80>: Failed to establish a new connection: [Errno 50] Network is down | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/adapters.py", line 440, in send | |
timeout=timeout | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 639, in urlopen | |
_stacktrace=sys.exc_info()[2]) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/util/retry.py", line 388, in increment | |
raise MaxRetryError(_pool, url, error or ResponseError(cause)) | |
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.cryptocompare.com', port=443): Max retries exceeded with url: /api/data/coinsnapshot?fsym=&tsym=BTC (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x11b441e80>: Failed to establish a new connection: [Errno 50] Network is down',)) | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 916, in _bootstrap_inner | |
self.run() | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 1182, in run | |
self.function(*self.args, **self.kwargs) | |
File "/Users/alexandre/Documents/trading-bot/Util.py", line 17, in _run | |
self.function(*self.args, **self.kwargs) | |
File "/Users/alexandre/Documents/trading-bot/cryptocompare/CryptoCompareStream.py", line 24, in fetch_aggregated_data | |
api_message = coin.get_coin_snapshot(self.asset, self.market_asset) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/cryptocompy/coin.py", line 99, in get_coin_snapshot | |
data = load_data(url)['Data'] | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/cryptocompy/helper_functions.py", line 74, in load_data | |
r = requests.get(url) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/api.py", line 72, in get | |
return request('get', url, params=params, **kwargs) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/api.py", line 58, in request | |
return session.request(method=method, url=url, **kwargs) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/sessions.py", line 508, in request | |
resp = self.send(prep, **send_kwargs) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/sessions.py", line 618, in send | |
r = adapter.send(request, **kwargs) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/adapters.py", line 508, in send | |
raise ConnectionError(e, request=request) | |
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.cryptocompare.com', port=443): Max retries exceeded with url: /api/data/coinsnapshot?fsym=&tsym=BTC (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x11b441e80>: Failed to establish a new connection: [Errno 50] Network is down',)) | |
Exception in thread Thread-8170: | |
Traceback (most recent call last): | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connection.py", line 141, in _new_conn | |
(self.host, self.port), self.timeout, **extra_kw) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/util/connection.py", line 83, in create_connection | |
raise err | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection | |
sock.connect(sa) | |
OSError: [Errno 50] Network is down | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 601, in urlopen | |
chunked=chunked) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 346, in _make_request | |
self._validate_conn(conn) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 850, in _validate_conn | |
conn.connect() | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connection.py", line 284, in connect | |
conn = self._new_conn() | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connection.py", line 150, in _new_conn | |
self, "Failed to establish a new connection: %s" % e) | |
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x11b654da0>: Failed to establish a new connection: [Errno 50] Network is down | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/adapters.py", line 440, in send | |
timeout=timeout | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 639, in urlopen | |
_stacktrace=sys.exc_info()[2]) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/util/retry.py", line 388, in increment | |
raise MaxRetryError(_pool, url, error or ResponseError(cause)) | |
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.cryptocompare.com', port=443): Max retries exceeded with url: /api/data/coinsnapshot?fsym=&tsym=BTC (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x11b654da0>: Failed to establish a new connection: [Errno 50] Network is down',)) | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 916, in _bootstrap_inner | |
self.run() | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 1182, in run | |
self.function(*self.args, **self.kwargs) | |
File "/Users/alexandre/Documents/trading-bot/Util.py", line 17, in _run | |
self.function(*self.args, **self.kwargs) | |
File "/Users/alexandre/Documents/trading-bot/cryptocompare/CryptoCompareStream.py", line 24, in fetch_aggregated_data | |
api_message = coin.get_coin_snapshot(self.asset, self.market_asset) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/cryptocompy/coin.py", line 99, in get_coin_snapshot | |
data = load_data(url)['Data'] | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/cryptocompy/helper_functions.py", line 74, in load_data | |
r = requests.get(url) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/api.py", line 72, in get | |
return request('get', url, params=params, **kwargs) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/api.py", line 58, in request | |
return session.request(method=method, url=url, **kwargs) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/sessions.py", line 508, in request | |
resp = self.send(prep, **send_kwargs) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/sessions.py", line 618, in send | |
r = adapter.send(request, **kwargs) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/adapters.py", line 508, in send | |
raise ConnectionError(e, request=request) | |
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.cryptocompare.com', port=443): Max retries exceeded with url: /api/data/coinsnapshot?fsym=&tsym=BTC (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x11b654da0>: Failed to establish a new connection: [Errno 50] Network is down',)) | |
Exception in thread Thread-8184: | |
Traceback (most recent call last): | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connection.py", line 141, in _new_conn | |
(self.host, self.port), self.timeout, **extra_kw) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/util/connection.py", line 83, in create_connection | |
raise err | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection | |
sock.connect(sa) | |
OSError: [Errno 50] Network is down | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 601, in urlopen | |
chunked=chunked) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 346, in _make_request | |
self._validate_conn(conn) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 850, in _validate_conn | |
conn.connect() | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connection.py", line 284, in connect | |
conn = self._new_conn() | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connection.py", line 150, in _new_conn | |
self, "Failed to establish a new connection: %s" % e) | |
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x11b51abe0>: Failed to establish a new connection: [Errno 50] Network is down | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/adapters.py", line 440, in send | |
timeout=timeout | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 639, in urlopen | |
_stacktrace=sys.exc_info()[2]) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/urllib3/util/retry.py", line 388, in increment | |
raise MaxRetryError(_pool, url, error or ResponseError(cause)) | |
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.cryptocompare.com', port=443): Max retries exceeded with url: /api/data/coinsnapshot?fsym=&tsym=BTC (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x11b51abe0>: Failed to establish a new connection: [Errno 50] Network is down',)) | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 916, in _bootstrap_inner | |
self.run() | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/threading.py", line 1182, in run | |
self.function(*self.args, **self.kwargs) | |
File "/Users/alexandre/Documents/trading-bot/Util.py", line 17, in _run | |
self.function(*self.args, **self.kwargs) | |
File "/Users/alexandre/Documents/trading-bot/cryptocompare/CryptoCompareStream.py", line 24, in fetch_aggregated_data | |
api_message = coin.get_coin_snapshot(self.asset, self.market_asset) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/cryptocompy/coin.py", line 99, in get_coin_snapshot | |
data = load_data(url)['Data'] | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/cryptocompy/helper_functions.py", line 74, in load_data | |
r = requests.get(url) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/api.py", line 72, in get | |
return request('get', url, params=params, **kwargs) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/api.py", line 58, in request | |
return session.request(method=method, url=url, **kwargs) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/sessions.py", line 508, in request | |
resp = self.send(prep, **send_kwargs) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/sessions.py", line 618, in send | |
r = adapter.send(request, **kwargs) | |
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/adapters.py", line 508, in send | |
raise ConnectionError(e, request=request) | |
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.cryptocompare.com', port=443): Max retries exceeded with url: /api/data/coinsnapshot?fsym=&tsym=BTC (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x11b51abe0>: Failed to establish a new connection: [Errno 50] Network is down',)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment