Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2019-09-23 14:54:01,402 DEBUG sal9k.sal9kbot process_maybe_execute_entry 894 "BUY: Found no buy signals for whitelisted currencies."
- 2019-09-23 14:54:01,403 DEBUG sal9k.engine.live_trading _throttle 87 "Throttling check_new_trades for 0.99 seconds"
- 2019-09-23 14:54:14,619 WARNING telegram.vendor.ptb_urllib3.urllib3.connectionpool urlopen 690 "Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<telegram.vendor.ptb_urllib3.urllib3.connection.VerifiedHTTPSConnection object at 0x7f3735d9ac18>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /bot904941314:AAG26PmfBL12ubjndcLMEfxZ7QR8gcIBsN8/getUpdates"
- 2019-09-23 14:54:16,431 ERROR sal9k.exchange.quantfury get_ticker_history 862 "HTTPSConnectionPool(host='api-pub.bitfinex.com', port=443): Max retries exceeded with url: /v2/candles/trade:1m:tBTCUSD/hist (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f3735d9a278>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',))"
- Traceback (most recent call last):
- File "/home/loopy83/.local/lib/python3.6/site-packages/urllib3/connection.py", line 160, in _new_conn
- (self._dns_host, self.port), self.timeout, **extra_kw)
- File "/home/loopy83/.local/lib/python3.6/site-packages/urllib3/util/connection.py", line 57, in create_connection
- for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
- File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
- for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
- socket.gaierror: [Errno -3] Temporary failure in name resolution
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/home/loopy83/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 603, in urlopen
- chunked=chunked)
- File "/home/loopy83/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 344, in _make_request
- self._validate_conn(conn)
- File "/home/loopy83/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 843, in _validate_conn
- conn.connect()
- File "/home/loopy83/.local/lib/python3.6/site-packages/urllib3/connection.py", line 316, in connect
- conn = self._new_conn()
- File "/home/loopy83/.local/lib/python3.6/site-packages/urllib3/connection.py", line 169, in _new_conn
- self, "Failed to establish a new connection: %s" % e)
- urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x7f3735d9a278>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/home/loopy83/.local/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
- timeout=timeout
- File "/home/loopy83/.local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 641, in urlopen
- _stacktrace=sys.exc_info()[2])
- File "/home/loopy83/.local/lib/python3.6/site-packages/urllib3/util/retry.py", line 399, in increment
- raise MaxRetryError(_pool, url, error or ResponseError(cause))
- urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api-pub.bitfinex.com', port=443): Max retries exceeded with url: /v2/candles/trade:1m:tBTCUSD/hist (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f3735d9a278>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',))
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/home/loopy83/sal9k-quant/sal9k/exchange/quantfury.py", line 809, in get_ticker_history
- response = requests.get(url, headers=header, data=json.dumps(req_data))
- File "/home/loopy83/.local/lib/python3.6/site-packages/requests/api.py", line 75, in get
- return request('get', url, params=params, **kwargs)
- File "/home/loopy83/.local/lib/python3.6/site-packages/requests/api.py", line 60, in request
- return session.request(method=method, url=url, **kwargs)
- File "/home/loopy83/.local/lib/python3.6/site-packages/requests/sessions.py", line 533, in request
- resp = self.send(prep, **send_kwargs)
- File "/home/loopy83/.local/lib/python3.6/site-packages/requests/sessions.py", line 646, in send
- r = adapter.send(request, **kwargs)
- File "/home/loopy83/.local/lib/python3.6/site-packages/requests/adapters.py", line 516, in send
- raise ConnectionError(e, request=request)
- requests.exceptions.ConnectionError: HTTPSConnectionPool(host='api-pub.bitfinex.com', port=443): Max retries exceeded with url: /v2/candles/trade:1m:tBTCUSD/hist (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f3735d9a278>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',))
- 2019-09-23 14:54:34,651 WARNING telegram.vendor.ptb_urllib3.urllib3.connectionpool urlopen 690 "Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<telegram.vendor.ptb_urllib3.urllib3.connection.VerifiedHTTPSConnection object at 0x7f3735d9abe0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /bot904941314:AAG26PmfBL12ubjndcLMEfxZ7QR8gcIBsN8/getUpdates"
- 2019-09-23 14:54:34,739 INFO sal9k.sal9kbot get_telegram_signal 345 "reading message complete -> wait for next message"
- 2019-09-23 14:54:44,679 INFO sal9k.sal9kbot get_telegram_signal 345 "reading message complete -> wait for next message"
- 2019-09-23 14:54:44,686 DEBUG sal9k.engine.live_trading _throttle 87 "Throttling check_open_trades for 0.99 seconds"
- 2019-09-23 14:54:44,688 DEBUG sal9k.sal9kbot process_maybe_execute_entry 888 "process_maybe_execute_entry"
- 2019-09-23 14:54:44,693 DEBUG sal9k.sal9kbot process_maybe_execute_entry 894 "BUY: Found no buy signals for whitelisted currencies."
- 2019-09-23 14:54:44,694 DEBUG sal9k.engine.live_trading _throttle 87 "Throttling check_new_trades for 0.99 seconds"
- 2019-09-23 14:54:44,837 DEBUG sal9k.exchange.quantfury get_positions 133 "{'code': 'Success', 'data': {'id': 'ab47133c-a358-4dad-b2b1-8c1eb9d6051e', 'openDate': 1562447045, 'deposits': [{'id': 'c291e64d-ce26-4bc4-a3fe-4fc327f7d006', 'currency': 'BTC', 'confirmsNeeded': 2, 'confirmsReceived': 2, 'amountAccount': 0.00868056, 'createDate': 1562446855}, {'id': 'b8ceb6cd-73c3-4ab8-a941-cbde70c735fc', 'currency': 'BTC', 'confirmsNeeded': 2, 'confirmsReceived': 2, 'amountAccount': 0.01178953, 'createDate': 1564996479}], 'tradingPositions': [], 'limitOrders': [], 'goods': {'id': '8ff27363-841f-4f6c-a47b-7713956e8c7b', 'name': '300', 'order': 2, 'amount': 10, 'period': 300000, 'fee': 300.0, 'shoulder': 6000.0, 'availableToBuy': True}, 'currency': 'BTC', 'balanceAccount': 0.02047009, 'state': 4, 'pnlAccountClosePositions': 0.00010811, 'withdrawalsTotal': 0.0, 'depositsTotal': 0.02047009, 'scalpingModeDuration': 300}, 'isSuccess': True}"
- 2019-09-23 14:54:44,839 DEBUG sal9k.sal9kbot check_positions 685 "Position [{'symbol': 'BTC/USD', 'currency': 'XBt', 'underlying': 'XBT', 'quoteCurrency': 'USD', 'commission': 0.00075, 'leverage': 100, 'crossMargin': True, 'currentQty': 0, 'isOpen': False, 'markPrice': None, 'realisedPnl': 0, 'unrealisedPnl': 0, 'simpleQty': None, 'avgEntryPrice': 0, 'breakEvenPrice': None, 'liquidationPrice': None, 'bankruptPrice': None, 'timestamp': '2019-09-23T12:54:44.839', 'lastPrice': None}]"
- 2019-09-23 14:54:44,840 DEBUG sal9k.sal9kbot check_positions 695 "ws_timestamp: 2019-09-23T12:54:44.839"
- 2019-09-23 14:54:44,841 DEBUG sal9k.sal9kbot check_positions 700 "ws_timestamp_unix 1569243284.839"
- 2019-09-23 14:54:45,097 DEBUG sal9k.exchange.quantfury get_raw_positions 200 "{'code': 'Success', 'data': {'id': 'ab47133c-a358-4dad-b2b1-8c1eb9d6051e', 'openDate': 1562447045, 'deposits': [{'id': 'c291e64d-ce26-4bc4-a3fe-4fc327f7d006', 'currency': 'BTC', 'confirmsNeeded': 2, 'confirmsReceived': 2, 'amountAccount': 0.00868056, 'createDate': 1562446855}, {'id': 'b8ceb6cd-73c3-4ab8-a941-cbde70c735fc', 'currency': 'BTC', 'confirmsNeeded': 2, 'confirmsReceived': 2, 'amountAccount': 0.01178953, 'createDate': 1564996479}], 'tradingPositions': [], 'limitOrders': [], 'goods': {'id': '8ff27363-841f-4f6c-a47b-7713956e8c7b', 'name': '300', 'order': 2, 'amount': 10, 'period': 300000, 'fee': 300.0, 'shoulder': 6000.0, 'availableToBuy': True}, 'currency': 'BTC', 'balanceAccount': 0.02047009, 'state': 4, 'pnlAccountClosePositions': 0.00010811, 'withdrawalsTotal': 0.0, 'depositsTotal': 0.02047009, 'scalpingModeDuration': 300}, 'isSuccess': True}"
- 2019-09-23 14:54:45,101 DEBUG sal9k.engine.live_trading _throttle 87 "Throttling check_misc for 14.59 seconds"
- 2019-09-23 14:54:45,102 ERROR sal9k main 120 "Fatal exception!"
- Traceback (most recent call last):
- File "/home/loopy83/sal9k-quant/sal9k/main.py", line 101, in main
- trader.start()
- File "/home/loopy83/sal9k-quant/sal9k/engine/live_trading.py", line 68, in start
- self.loop.run_until_complete(self.loop_tasks)
- File "uvloop/loop.pyx", line 1451, in uvloop.loop.Loop.run_until_complete
- File "/home/loopy83/sal9k-quant/sal9k/worker.py", line 60, in start
- self.state = await self._run(self.state, task)
- File "/home/loopy83/sal9k-quant/sal9k/worker.py", line 77, in _run
- min_secs=task.min_secs)
- File "/home/loopy83/sal9k-quant/sal9k/worker.py", line 82, in _throttle
- result = await self._process(fn, *args, **kwargs)
- File "/home/loopy83/sal9k-quant/sal9k/worker.py", line 94, in _process
- return await fn(*args, **kwargs)
- File "/home/loopy83/sal9k-quant/sal9k/sal9kbot.py", line 553, in fetch_signals
- self.signals[_pair], data, last_ticker = await self.analyze.get_signal(_pair, interval)
- File "/home/loopy83/sal9k-quant/sal9k/analyze.py", line 275, in get_signal
- if ticker_history.empty:
- AttributeError: 'NoneType' object has no attribute 'empty'
- 2019-09-23 14:54:45,147 INFO sal9k.rpc.rpc_manager send_msg 41 "Sending rpc message: Fatal exception!"
- 2019-09-23 14:54:45,149 DEBUG sal9k.rpc.rpc_manager send_msg 43 "Forwarding message to rpc.telegram"
- 2019-09-23 14:54:45,155 WARNING sal9k main 125 "Stopping..."
- 2019-09-23 14:54:45,156 WARNING sal9k.engine.live_trading stop 72 "Stopping worker"
- 2019-09-23 14:54:45,157 DEBUG sal9k.engine.live_trading stop 76 "pending tasks: {<Task pending coro=<Worker.start() running at /home/loopy83/sal9k-quant/sal9k/worker.py:60> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x7f3737ffe408>()]> cb=[gather.<locals>._done_callback(1)() at /usr/lib/python3.6/asyncio/tasks.py:622]>, <Task pending coro=<Worker.start() running at /home/loopy83/sal9k-quant/sal9k/worker.py:60> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x7f3735e695e8>()]> cb=[gather.<locals>._done_callback(3)() at /usr/lib/python3.6/asyncio/tasks.py:622]>, <Task finished coro=<Worker.start() done, defined at /home/loopy83/sal9k-quant/sal9k/worker.py:57> exception=AttributeError("'NoneType' object has no attribute 'empty'",)>, <Task pending coro=<Worker.start() running at /home/loopy83/sal9k-quant/sal9k/worker.py:60> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x7f3735e69918>()]> cb=[gather.<locals>._done_callback(2)() at /usr/lib/python3.6/asyncio/tasks.py:622]>}"
- 2019-09-23 14:54:45,157 DEBUG sal9k.engine.live_trading stop 78 "task: <Task pending coro=<Worker.start() running at /home/loopy83/sal9k-quant/sal9k/worker.py:60> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x7f3737ffe408>()]> cb=[gather.<locals>._done_callback(1)() at /usr/lib/python3.6/asyncio/tasks.py:622]>"
- 2019-09-23 14:54:45,158 DEBUG sal9k.engine.live_trading stop 80 "task canceled"
- 2019-09-23 14:54:45,159 DEBUG sal9k.engine.live_trading stop 78 "task: <Task pending coro=<Worker.start() running at /home/loopy83/sal9k-quant/sal9k/worker.py:60> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x7f3735e695e8>()]> cb=[gather.<locals>._done_callback(3)() at /usr/lib/python3.6/asyncio/tasks.py:622]>"
- 2019-09-23 14:54:45,159 DEBUG sal9k.engine.live_trading stop 80 "task canceled"
- 2019-09-23 14:54:45,159 DEBUG sal9k.engine.live_trading stop 78 "task: <Task finished coro=<Worker.start() done, defined at /home/loopy83/sal9k-quant/sal9k/worker.py:57> exception=AttributeError("'NoneType' object has no attribute 'empty'",)>"
- 2019-09-23 14:54:45,160 DEBUG sal9k.engine.live_trading stop 80 "task canceled"
- 2019-09-23 14:54:59,685 WARNING telegram.vendor.ptb_urllib3.urllib3.connectionpool urlopen 690 "Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<telegram.vendor.ptb_urllib3.urllib3.connection.VerifiedHTTPSConnection object at 0x7f3735bee240>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /bot904941314:AAG26PmfBL12ubjndcLMEfxZ7QR8gcIBsN8/getUpdates"
- 2019-09-23 14:55:00,164 WARNING telegram.vendor.ptb_urllib3.urllib3.connectionpool urlopen 690 "Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<telegram.vendor.ptb_urllib3.urllib3.connection.VerifiedHTTPSConnection object at 0x7f3737fd90f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /bot904941314:AAG26PmfBL12ubjndcLMEfxZ7QR8gcIBsN8/sendMessage"
- 2019-09-23 14:55:14,547 ERROR telegram.ext.updater _network_loop_retry 332 "Error while getting Updates: urllib3 HTTPError HTTPSConnectionPool(host='api.telegram.org', port=443): Max retries exceeded with url: /bot904941314:AAG26PmfBL12ubjndcLMEfxZ7QR8gcIBsN8/getUpdates (Caused by NewConnectionError('<telegram.vendor.ptb_urllib3.urllib3.connection.VerifiedHTTPSConnection object at 0x7f3735d6d7b8>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',))"
- 2019-09-23 14:55:14,547 WARNING telegram.vendor.ptb_urllib3.urllib3.connectionpool urlopen 690 "Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<telegram.vendor.ptb_urllib3.urllib3.connection.VerifiedHTTPSConnection object at 0x7f3735bb16d8>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /bot904941314:AAG26PmfBL12ubjndcLMEfxZ7QR8gcIBsN8/sendMessage"
- 2019-09-23 14:55:14,567 ERROR telegram.ext.dispatcher dispatch_error 388 "No error handlers are registered, logging exception."
- Traceback (most recent call last):
- File "/home/loopy83/.local/lib/python3.6/site-packages/telegram/vendor/ptb_urllib3/urllib3/connection.py", line 141, in _new_conn
- (self.host, self.port), self.timeout, **extra_kw)
- File "/home/loopy83/.local/lib/python3.6/site-packages/telegram/vendor/ptb_urllib3/urllib3/util/connection.py", line 60, in create_connection
- for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
- File "/usr/lib/python3.6/socket.py", line 745, in getaddrinfo
- for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
- socket.gaierror: [Errno -3] Temporary failure in name resolution
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/home/loopy83/.local/lib/python3.6/site-packages/telegram/vendor/ptb_urllib3/urllib3/connectionpool.py", line 617, in urlopen
- chunked=chunked)
- File "/home/loopy83/.local/lib/python3.6/site-packages/telegram/vendor/ptb_urllib3/urllib3/connectionpool.py", line 360, in _make_request
- self._validate_conn(conn)
- File "/home/loopy83/.local/lib/python3.6/site-packages/telegram/vendor/ptb_urllib3/urllib3/connectionpool.py", line 857, in _validate_conn
- super(HTTPSConnectionPool, self)._validate_conn(conn)
- File "/home/loopy83/.local/lib/python3.6/site-packages/telegram/vendor/ptb_urllib3/urllib3/connectionpool.py", line 289, in _validate_conn
- conn.connect()
- File "/home/loopy83/.local/lib/python3.6/site-packages/telegram/vendor/ptb_urllib3/urllib3/connection.py", line 284, in connect
- conn = self._new_conn()
- File "/home/loopy83/.local/lib/python3.6/site-packages/telegram/vendor/ptb_urllib3/urllib3/connection.py", line 150, in _new_conn
- self, "Failed to establish a new connection: %s" % e)
- telegram.vendor.ptb_urllib3.urllib3.exceptions.NewConnectionError: <telegram.vendor.ptb_urllib3.urllib3.connection.VerifiedHTTPSConnection object at 0x7f3735d6d7b8>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/home/loopy83/.local/lib/python3.6/site-packages/telegram/utils/request.py", line 203, in _request_wrapper
- resp = self._con_pool.request(*args, **kwargs)
- File "/home/loopy83/.local/lib/python3.6/site-packages/telegram/vendor/ptb_urllib3/urllib3/request.py", line 70, in request
- **urlopen_kw)
- File "/home/loopy83/.local/lib/python3.6/site-packages/telegram/vendor/ptb_urllib3/urllib3/request.py", line 148, in request_encode_body
- return self.urlopen(method, url, **extra_kw)
- File "/home/loopy83/.local/lib/python3.6/site-packages/telegram/vendor/ptb_urllib3/urllib3/poolmanager.py", line 244, in urlopen
- response = conn.urlopen(method, u.request_uri, **kw)
- File "/home/loopy83/.local/lib/python3.6/site-packages/telegram/vendor/ptb_urllib3/urllib3/connectionpool.py", line 695, in urlopen
- **response_kw)
- File "/home/loopy83/.local/lib/python3.6/site-packages/telegram/vendor/ptb_urllib3/urllib3/connectionpool.py", line 695, in urlopen
- **response_kw)
- File "/home/loopy83/.local/lib/python3.6/site-packages/telegram/vendor/ptb_urllib3/urllib3/connectionpool.py", line 695, in urlopen
- **response_kw)
- File "/home/loopy83/.local/lib/python3.6/site-packages/telegram/vendor/ptb_urllib3/urllib3/connectionpool.py", line 666, in urlopen
- _stacktrace=sys.exc_info()[2])
- File "/home/loopy83/.local/lib/python3.6/site-packages/telegram/vendor/ptb_urllib3/urllib3/util/retry.py", line 376, in increment
- raise MaxRetryError(_pool, url, error or ResponseError(cause))
- telegram.vendor.ptb_urllib3.urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.telegram.org', port=443): Max retries exceeded with url: /bot904941314:AAG26PmfBL12ubjndcLMEfxZ7QR8gcIBsN8/getUpdates (Caused by NewConnectionError('<telegram.vendor.ptb_urllib3.urllib3.connection.VerifiedHTTPSConnection object at 0x7f3735d6d7b8>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',))
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/home/loopy83/.local/lib/python3.6/site-packages/telegram/ext/updater.py", line 319, in _network_loop_retry
- if not action_cb():
- File "/home/loopy83/.local/lib/python3.6/site-packages/telegram/ext/updater.py", line 280, in polling_action_cb
- allowed_updates=allowed_updates)
- File "/home/loopy83/.local/lib/python3.6/site-packages/telegram/bot.py", line 65, in decorator
- result = func(self, *args, **kwargs)
- File "/home/loopy83/.local/lib/python3.6/site-packages/telegram/bot.py", line 1975, in get_updates
- result = self._request.post(url, data, timeout=float(read_latency) + float(timeout))
- File "/home/loopy83/.local/lib/python3.6/site-packages/telegram/utils/request.py", line 309, in post
- headers={'Content-Type': 'application/json'})
- File "/home/loopy83/.local/lib/python3.6/site-packages/telegram/utils/request.py", line 209, in _request_wrapper
- raise NetworkError('urllib3 HTTPError {0}'.format(error))
- telegram.error.NetworkError: urllib3 HTTPError HTTPSConnectionPool(host='api.telegram.org', port=443): Max retries exceeded with url: /bot904941314:AAG26PmfBL12ubjndcLMEfxZ7QR8gcIBsN8/getUpdates (Caused by NewConnectionError('<telegram.vendor.ptb_urllib3.urllib3.connection.VerifiedHTTPSConnection object at 0x7f3735d6d7b8>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement