evgrmn / tmatic

Tmatic is a cryptocurrency platform designed for automated trading on the Bitmex, Bybit and Deribit crypto exchanges.
https://www.tmatic.org
GNU General Public License v3.0
25 stars 6 forks source link

Issue about Tmatic's freezing #233

Closed nikolayromenskiy closed 2 months ago

nikolayromenskiy commented 3 months ago

2024-05-21 13:24:45,341 - api.bybit.ws - INFO - ws subscription - ticker_stream - category - linear - symbol - ('BTCUSDT', 'linear', 'Bybit') 2024-05-21 13:24:45,349 - api.bybit.agent - INFO - In open_orders - sending open_orders() - parameters - {'openOnly': 0, 'limit': 50, 'category': 'spot', 'cursor': 'no'} 2024-05-21 13:24:45,349 - api.bybit.agent - INFO - In trading_history - sending get_executions() - category - spot - startTime - 2024-05-20 10:55:25+00:00 2024-05-21 13:24:45,350 - api.bybit.agent - INFO - In trading_history - sending get_executions() - category - inverse - startTime - 2024-05-20 10:55:25+00:00 2024-05-21 13:24:45,350 - api.bybit.agent - INFO - In open_orders - sending open_orders() - parameters - {'openOnly': 0, 'limit': 50, 'category': 'linear', 'settleCoin': 'USDT', 'cursor': 'no'} 2024-05-21 13:24:45,351 - api.bybit.agent - INFO - In trading_history - sending get_executions() - category - option - startTime - 2024-05-20 10:55:25+00:00 2024-05-21 13:24:45,352 - api.bybit.agent - INFO - In trading_history - sending get_executions() - category - linear - startTime - 2024-05-20 10:55:25+00:00 2024-05-21 13:24:45,590 - api.bybit.agent - INFO - In trading_history - sending get_executions() - category - linear - startTime - 2024-05-20 10:55:25+00:00 Bybit - loading trading history, startTime=2024-05-20 10:55:25+00:00, received: 1 records. __websocket is already closed __websocket is already closed ___urgent_announcement 2024-05-21 13:46:22,060 - api.bybit.ws - INFO - Bybit - Websocket closed 2024-05-21 13:46:22,367 - api.bybit.ws - INFO - Bybit - Websocket closed 2024-05-21 13:46:22,368 - api.bybit.agent - INFO - In get_active_instruments - sending get_instruments_info() - category - spot 2024-05-21 13:46:22,368 - api.bybit.agent - INFO - In get_active_instruments - sending get_instruments_info() - category - inverse 2024-05-21 13:46:22,368 - api.bybit.agent - INFO - In get_active_instruments - sending get_instruments_info() - category - option 2024-05-21 13:46:22,369 - api.bybit.agent - INFO - In get_active_instruments - sending get_instruments_info() - category - linear Exception in thread Thread-130 (get_in_thread): Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/connectionpool.py", line 793, in urlopen Exception in thread Thread-132 (get_in_thread): Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/connectionpool.py", line 793, in urlopen Exception in thread Thread-131 (get_in_thread): Exception in thread Thread-129 (get_in_thread): Traceback (most recent call last): Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/connectionpool.py", line 793, in urlopen File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/connectionpool.py", line 793, in urlopen response = self._make_request( response = self._make_request( response = self._make_request( ^^^^^^^^^^^^^^^^^^^ response = self._make_request( ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/connectionpool.py", line 537, in _make_request ^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/connectionpool.py", line 537, in _make_request File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/connectionpool.py", line 537, in _make_request File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/connectionpool.py", line 537, in _make_request response = conn.getresponse() ^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/connection.py", line 466, in getresponse response = conn.getresponse() ^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/connection.py", line 466, in getresponse response = conn.getresponse() ^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/connection.py", line 466, in getresponse response = conn.getresponse() httplib_response = super().getresponse() httplib_response = super().getresponse() ^^^^^^^^^^^^^^^^^^ httplib_response = super().getresponse() ^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/connection.py", line 466, in getresponse ^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/http/client.py", line 1423, in getresponse File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/http/client.py", line 1423, in getresponse File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/http/client.py", line 1423, in getresponse httplib_response = super().getresponse() ^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/http/client.py", line 1423, in getresponse response.begin() File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/http/client.py", line 331, in begin response.begin() File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/http/client.py", line 331, in begin response.begin() File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/http/client.py", line 331, in begin version, status, reason = self._read_status() ^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/http/client.py", line 300, in _read_status version, status, reason = self._read_status() ^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/http/client.py", line 300, in _read_status response.begin() version, status, reason = self._read_status() raise RemoteDisconnected("Remote end closed connection without" File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/http/client.py", line 331, in begin raise RemoteDisconnected("Remote end closed connection without" ^^^^^^^^^^^^^^^^^^^ http.client.RemoteDisconnected: Remote end closed connection without response File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/http/client.py", line 300, in _read_status

version, status, reason = self._read_status()

During handling of the above exception, another exception occurred: ^^^^^^^^^^^^^^^^^^^

http.client.RemoteDisconnected: Remote end closed connection without response raise RemoteDisconnected("Remote end closed connection without" File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/http/client.py", line 300, in _read_status Traceback (most recent call last): http.client.RemoteDisconnected: Remote end closed connection without response

File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/adapters.py", line 486, in send

During handling of the above exception, another exception occurred: During handling of the above exception, another exception occurred:

raise RemoteDisconnected("Remote end closed connection without"

Traceback (most recent call last): http.client.RemoteDisconnected: Remote end closed connection without response

During handling of the above exception, another exception occurred: File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/adapters.py", line 486, in send

resp = conn.urlopen(

Traceback (most recent call last): Traceback (most recent call last): ^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/adapters.py", line 486, in send resp = conn.urlopen( File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/connectionpool.py", line 847, in urlopen File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/adapters.py", line 486, in send ^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/connectionpool.py", line 847, in urlopen resp = conn.urlopen( ^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/connectionpool.py", line 847, in urlopen retries = retries.increment( ^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/util/retry.py", line 470, in increment resp = conn.urlopen( ^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/connectionpool.py", line 847, in urlopen retries = retries.increment( ^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/util/retry.py", line 470, in increment retries = retries.increment( ^^^^^^^^^^^^^^^^^^ retries = retries.increment( File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/util/retry.py", line 470, in increment ^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/util/retry.py", line 470, in increment raise reraise(type(error), error, _stacktrace) raise reraise(type(error), error, _stacktrace) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/util/util.py", line 38, in reraise raise reraise(type(error), error, _stacktrace) raise reraise(type(error), error, _stacktrace) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/util/util.py", line 38, in reraise File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/util/util.py", line 38, in reraise raise value.with_traceback(tb) File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/util/util.py", line 38, in reraise File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/connectionpool.py", line 793, in urlopen raise value.with_traceback(tb) raise value.with_traceback(tb) File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/connectionpool.py", line 793, in urlopen File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/connectionpool.py", line 793, in urlopen response = self._make_request( raise value.with_traceback(tb) response = self._make_request( File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/connectionpool.py", line 793, in urlopen ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/connectionpool.py", line 537, in _make_request File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/connectionpool.py", line 537, in _make_request response = self._make_request( response = self._make_request( ^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/connectionpool.py", line 537, in _make_request ^^^^^^^^^^^^^^^^^^^ response = conn.getresponse() response = conn.getresponse() ^^^^^^^^^^^^^^^^^^ response = conn.getresponse() File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/connectionpool.py", line 537, in _make_request ^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/connection.py", line 466, in getresponse File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/connection.py", line 466, in getresponse ^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/connection.py", line 466, in getresponse response = conn.getresponse() ^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/connection.py", line 466, in getresponse httplib_response = super().getresponse() ^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/http/client.py", line 1423, in getresponse httplib_response = super().getresponse() ^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/http/client.py", line 1423, in getresponse httplib_response = super().getresponse() ^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/http/client.py", line 1423, in getresponse response.begin() response.begin() File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/http/client.py", line 331, in begin response.begin() File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/http/client.py", line 331, in begin httplib_response = super().getresponse() File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/http/client.py", line 331, in begin ^^^^^^^^^^^^^^^^^^^^^ version, status, reason = self._read_status() version, status, reason = self._read_status() ^^^^^^^^^^^^^^^^^^^ version, status, reason = self._read_status() File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/http/client.py", line 1423, in getresponse ^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/http/client.py", line 300, in _read_status ^^^^^^^^^^^^^^^^^^^ response.begin() File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/http/client.py", line 300, in _read_status File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/http/client.py", line 331, in begin raise RemoteDisconnected("Remote end closed connection without" File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/http/client.py", line 300, in _read_status urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')) version, status, reason = self._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:

During handling of the above exception, another exception occurred:

Traceback (most recent call last): raise RemoteDisconnected("Remote end closed connection without" File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/http/client.py", line 300, in _read_status File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/threading.py", line 1073, in _bootstrap_inner Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/threading.py", line 1073, in _bootstrap_inner urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

During handling of the above exception, another exception occurred:

raise RemoteDisconnected("Remote end closed connection without"

Traceback (most recent call last): urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

During handling of the above exception, another exception occurred: self.run() self.run()

File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/threading.py", line 1073, in _bootstrap_inner Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/threading.py", line 1010, in run File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/threading.py", line 1010, in run File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/threading.py", line 1073, in _bootstrap_inner self.run() self._target(*self._args, self._kwargs) File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/threading.py", line 1010, in run self._target(*self._args, *self._kwargs) self.run() File "/Users/nrmn/Documents/tmatic_240521/api/bybit/agent.py", line 26, in get_in_thread File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/threading.py", line 1010, in run File "/Users/nrmn/Documents/tmatic_240521/api/bybit/agent.py", line 26, in get_in_thread self._target(self._args, self._kwargs) self._target(*self._args, self._kwargs) File "/Users/nrmn/Documents/tmatic_240521/api/bybit/agent.py", line 26, in get_in_thread result = self.session.get_instruments_info( result = self.session.get_instruments_info( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/nrmn/Documents/tmatic_240521/api/bybit/pybit/_v5_market.py", line 111, in get_instruments_info File "/Users/nrmn/Documents/tmatic_240521/api/bybit/pybit/_v5_market.py", line 111, in get_instruments_info File "/Users/nrmn/Documents/tmatic_240521/api/bybit/agent.py", line 26, in get_in_thread result = self.session.get_instruments_info( return self._submit_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ File "/Users/nrmn/Documents/tmatic_240521/api/bybit/pybit/_v5_market.py", line 111, in get_instruments_info result = self.session.get_instruments_info( File "/Users/nrmn/Documents/tmatic_240521/api/bybit/pybit/_http_manager.py", line 277, in _submit_request ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ return self._submit_request( return self._submit_request( File "/Users/nrmn/Documents/tmatic_240521/api/bybit/pybit/_v5_market.py", line 111, in get_instruments_info ^^^^^^^^^^^^^^^^^^^^^ raise e File "/Users/nrmn/Documents/tmatic_240521/api/bybit/pybit/_http_manager.py", line 277, in _submit_request File "/Users/nrmn/Documents/tmatic_240521/api/bybit/pybit/_http_manager.py", line 264, in _submit_request ^^^^^^^^^^^^^^^^^^^^^ return self._submit_request( s = self.client.send(r, timeout=self.timeout) ^^^^^^^^^^^^^^^^^^^^^ raise e ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/nrmn/Documents/tmatic_240521/api/bybit/pybit/_http_manager.py", line 277, in _submit_request File "/Users/nrmn/Documents/tmatic_240521/api/bybit/pybit/_http_manager.py", line 277, in _submit_request File "/Users/nrmn/Documents/tmatic_240521/api/bybit/pybit/_http_manager.py", line 264, in _submit_request File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/sessions.py", line 703, in send raise e File "/Users/nrmn/Documents/tmatic_240521/api/bybit/pybit/_http_manager.py", line 264, in _submit_request raise e File "/Users/nrmn/Documents/tmatic_240521/api/bybit/pybit/_http_manager.py", line 264, in _submit_request s = self.client.send(r, timeout=self.timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/sessions.py", line 703, in send r = adapter.send(request, kwargs) s = self.client.send(r, timeout=self.timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ r = adapter.send(request, kwargs) s = self.client.send(r, timeout=self.timeout) File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/adapters.py", line 501, in send ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/sessions.py", line 703, in send File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/adapters.py", line 501, in send ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ raise ConnectionError(err, request=request) File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/sessions.py", line 703, in send raise ConnectionError(err, request=request) requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')) r = adapter.send(request, kwargs) requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')) r = adapter.send(request, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/adapters.py", line 501, in send File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/adapters.py", line 501, in send raise ConnectionError(err, request=request) requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')) raise ConnectionError(err, request=request) requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')) 2024-05-21 13:46:22,498 - api.bybit.ws - INFO - Connecting to websocket 2024-05-21 13:46:22,498 - api.bybit.agent - INFO - In get_user - sending get_uid_wallet_type() 2024-05-21 13:46:22,498 - api.bybit.agent - INFO - In get_wallet_balance - sending get_wallet_balance() - accountType - UNIFIED 2024-05-21 13:46:22,499 - api.bybit.agent - INFO - In get_position_info - sending get_positions() - category - linear - settlCurrency - USDT 2024-05-21 13:46:22,501 - api.bybit.pybit._websocket_stream - INFO - WebSocket Unified V5 attempting connection... 2024-05-21 13:46:22,504 - api.bybit.pybit._websocket_stream - INFO - WebSocket Unified V5 (Auth) attempting connection... 2024-05-21 13:46:23,126 - api.bybit.agent - INFO - In get_wallet_balance - sending get_wallet_balance() - accountType - CONTRACT 2024-05-21 13:46:23,505 - websocket - INFO - Websocket connected 2024-05-21 13:46:23,505 - api.bybit.pybit._websocket_stream - INFO - WebSocket Unified V5 (Auth) connected 2024-05-21 13:46:23,557 - websocket - INFO - Websocket connected 2024-05-21 13:46:23,558 - api.bybit.pybit._websocket_stream - INFO - WebSocket Unified V5 connected 2024-05-21 13:46:23,559 - api.bybit.ws - INFO - ws subscription - orderbook_stream - category - linear - symbol - ('BTCUSDT', 'linear', 'Bybit') 2024-05-21 13:46:23,560 - api.bybit.ws - INFO - ws subscription - ticker_stream - category - linear - symbol - ('BTCUSDT', 'linear', 'Bybit') 2024-05-21 13:46:24,280 - api.bybit.agent - INFO - In open_orders - sending open_orders() - parameters - {'openOnly': 0, 'limit': 50, 'category': 'spot', 'cursor': 'no'} 2024-05-21 13:46:24,280 - api.bybit.agent - INFO - In open_orders - sending open_orders() - parameters - {'openOnly': 0, 'limit': 50, 'category': 'linear', 'settleCoin': 'USDT', 'cursor': 'no'} 2024-05-21 13:46:24,280 - api.bybit.agent - INFO - In trading_history - sending get_executions() - category - spot - startTime - 2024-05-20 10:55:25+00:00 2024-05-21 13:46:24,281 - api.bybit.agent - INFO - In trading_history - sending get_executions() - category - inverse - startTime - 2024-05-20 10:55:25+00:00 2024-05-21 13:46:24,282 - api.bybit.agent - INFO - In trading_history - sending get_executions() - category - option - startTime - 2024-05-20 10:55:25+00:00 2024-05-21 13:46:24,282 - api.bybit.agent - INFO - In trading_history - sending get_executions() - category - linear - startTime - 2024-05-20 10:55:25+00:00 Exception in thread Thread-157 (get_in_thread): Exception in thread Thread-155 (get_in_thread): Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/connectionpool.py", line 793, in urlopen Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/connectionpool.py", line 793, in urlopen response = self._make_request( ^^^^^^^^^^^^^^^^^^^ response = self._make_request( ^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/connectionpool.py", line 537, in _make_request response = conn.getresponse() ^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/connection.py", line 466, in getresponse File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/connectionpool.py", line 537, in _make_request response = conn.getresponse() ^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/connection.py", line 466, in getresponse httplib_response = super().getresponse() ^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/http/client.py", line 1423, in getresponse response.begin() File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/http/client.py", line 331, in begin version, status, reason = self._read_status() ^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/http/client.py", line 300, 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 "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/adapters.py", line 486, in send resp = conn.urlopen( ^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/connectionpool.py", line 847, in urlopen retries = retries.increment( ^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/util/retry.py", line 470, in increment raise reraise(type(error), error, _stacktrace) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/util/util.py", line 38, in reraise raise value.with_traceback(tb) File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/connectionpool.py", line 793, in urlopen response = self._make_request( ^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/connectionpool.py", line 537, in _make_request response = conn.getresponse() ^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/connection.py", line 466, in getresponse httplib_response = super().getresponse() ^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/http/client.py", line 1423, in getresponse response.begin() File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/http/client.py", line 331, in begin httplib_response = super().getresponse() ^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/http/client.py", line 1423, in getresponse version, status, reason = self._read_status() ^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/http/client.py", line 300, 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): response.begin() File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/http/client.py", line 331, in begin File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/threading.py", line 1073, in _bootstrap_inner version, status, reason = self._read_status() ^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/http/client.py", line 300, in _read_status self.run() raise RemoteDisconnected("Remote end closed connection without" File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/threading.py", line 1010, in run http.client.RemoteDisconnected: Remote end closed connection without response

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/adapters.py", line 486, in send resp = conn.urlopen( ^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/connectionpool.py", line 847, in urlopen self._target(*self._args, self._kwargs) retries = retries.increment( File "/Users/nrmn/Documents/tmatic_240521/api/bybit/agent.py", line 140, in get_in_thread ^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/util/retry.py", line 470, in increment result = self.session.get_executions( raise reraise(type(error), error, _stacktrace) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/util/util.py", line 38, in reraise File "/Users/nrmn/Documents/tmatic_240521/api/bybit/pybit/_v5_position.py", line 220, in get_executions raise value.with_traceback(tb) return self._submit_request( File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/connectionpool.py", line 793, in urlopen ^^^^^^^^^^^^^^^^^^^^^ File "/Users/nrmn/Documents/tmatic_240521/api/bybit/pybit/_http_manager.py", line 277, in _submit_request response = self._make_request( raise e ^^^^^^^^^^^^^^^^^^^ File "/Users/nrmn/Documents/tmatic_240521/api/bybit/pybit/_http_manager.py", line 264, in _submit_request File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/connectionpool.py", line 537, in _make_request s = self.client.send(r, timeout=self.timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/sessions.py", line 703, in send response = conn.getresponse() ^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/urllib3/connection.py", line 466, in getresponse httplib_response = super().getresponse() ^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/http/client.py", line 1423, in getresponse r = adapter.send(request, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/adapters.py", line 501, in send raise ConnectionError(err, request=request) requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')) response.begin() File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/http/client.py", line 331, in begin version, status, reason = self._read_status() ^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/http/client.py", line 300, 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 "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/threading.py", line 1073, in _bootstrap_inner self.run() File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/threading.py", line 1010, in run self._target(*self._args, self._kwargs) File "/Users/nrmn/Documents/tmatic_240521/api/bybit/agent.py", line 140, in get_in_thread result = self.session.get_executions( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/nrmn/Documents/tmatic_240521/api/bybit/pybit/_v5_position.py", line 220, in get_executions return self._submit_request( ^^^^^^^^^^^^^^^^^^^^^ File "/Users/nrmn/Documents/tmatic_240521/api/bybit/pybit/_http_manager.py", line 277, in _submit_request raise e File "/Users/nrmn/Documents/tmatic_240521/api/bybit/pybit/_http_manager.py", line 264, in _submit_request s = self.client.send(r, timeout=self.timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/sessions.py", line 703, in send r = adapter.send(request, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/adapters.py", line 501, in send raise ConnectionError(err, request=request) requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')) Bybit - loading trading history, startTime=2024-05-20 10:55:25+00:00, received: 0 records. 2024-05-21 13:46:44,850 - api.bitmex.ws - INFO - (https) sending GET to announcement/urgent: "" 2024-05-21 13:46:44,913 - api.bitmex.ws - ERROR - Unable to contact API: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')). https://testnet.bitmex.com/api/v1/announcement/urgent: "" 2024-05-21 13:46:47,915 - api.bitmex.ws - INFO - (https) sending GET to announcement/urgent: "" 2024-05-21 13:46:48,480 - api.bitmex.ws - INFO - (https) sending GET to instrument/active: "" 2024-05-21 13:46:48,607 - api.bitmex.ws - INFO - Connecting to websocket 2024-05-21 13:46:48,607 - api.bitmex.ws - INFO - (https) sending GET to user: "" 2024-05-21 13:46:48,608 - api.bitmex.ws - INFO - Authenticating with API key. 2024-05-21 13:46:48,608 - api.bitmex.ws - INFO - (https) sending GET to position: "" 2024-05-21 13:46:48,633 - api.bitmex.ws - ERROR - Unable to contact API: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')). https://testnet.bitmex.com/api/v1/position: "" 2024-05-21 13:46:48,664 - api.bitmex.ws - INFO - Bitmex - Websocket closed 2024-05-21 13:46:49,038 - websocket - INFO - Websocket connected 2024-05-21 13:46:51,639 - api.bitmex.ws - INFO - (https) sending GET to position: "" 2024-05-21 13:46:51,819 - api.bitmex.ws - INFO - Bitmex - Websocket closed 2024-05-21 13:46:53,825 - api.bitmex.ws - INFO - (https) sending GET to instrument/active: "" 2024-05-21 13:46:53,939 - api.bitmex.ws - INFO - Connecting to websocket 2024-05-21 13:46:53,939 - api.bitmex.ws - INFO - Authenticating with API key. 2024-05-21 13:46:53,940 - api.bitmex.ws - INFO - (https) sending GET to user: "" 2024-05-21 13:46:53,940 - api.bitmex.ws - INFO - (https) sending GET to position: "" 2024-05-21 13:46:54,279 - websocket - INFO - Websocket connected 2024-05-21 13:46:54,946 - api.bitmex.ws - INFO - Connected to websocket. 2024-05-21 13:46:55,154 - api.bitmex.ws - INFO - Data received. Continuing. 2024-05-21 13:46:55,172 - api.bitmex.ws - INFO - (https) sending GET to execution/tradeHistory?count=500&reverse=false&startTime=2024-05-21 10:02:30: ""