Code Monkey home page Code Monkey logo

Comments (1)

nikolayromenskiy avatar nikolayromenskiy commented on July 18, 2024

Seems that Bybit's private subscription is down as the new order clOrdID=1264836825.BTCUSDT.linear did not appear in the Orders' widget. After reboot (F3) the order showed up.

2024-06-05 11:44:55,277 - functions - INFO - Emboldening SQLite
2024-06-05 11:44:58,552 - api.bitmex.ws - ERROR - Error: Connection to remote host was lost.
2024-06-05 11:44:58,552 - websocket - ERROR - Connection to remote host was lost. - goodbye
2024-06-05 11:44:58,552 - api.bitmex.ws - INFO - Bitmex - Websocket closed
2024-06-05 11:44:58,694 - api.bitmex.http - INFO - (https) sending GET to instrument/active: ""
2024-06-05 11:44:59,104 - api.bitmex.http - INFO - (https) sending GET to order?filter=%7B%22open%22%3A%20true%7D&reverse=false: ""
2024-06-05 11:44:59,215 - api.bitmex.ws - INFO - Connecting to websocket
2024-06-05 11:44:59,215 - api.bitmex.ws - INFO - Authenticating with API key.
2024-06-05 11:44:59,216 - api.bitmex.http - INFO - (https) sending GET to user: ""
2024-06-05 11:44:59,218 - api.bitmex.http - INFO - (https) sending GET to position: ""
2024-06-05 11:44:59,503 - websocket - INFO - Websocket connected
2024-06-05 11:44:59,988 - api.bybit.pybit._websocket_stream - ERROR - WebSocket Unified V5 (Auth) (wss://stream-testnet.bybit.com/v5/private) encountered error: Connection to remote host was lost..
2024-06-05 11:44:59,989 - api.bybit.pybit._websocket_stream - INFO - WebSocket Unified V5 (Auth) attempting connection...
2024-06-05 11:45:00,232 - api.bitmex.ws - INFO - Connected to websocket.
2024-06-05 11:45:00,669 - api.bitmex.ws - INFO - Data received. Continuing.
2024-06-05 11:45:00,715 - websocket - INFO - Websocket connected
2024-06-05 11:45:00,718 - api.bybit.pybit._websocket_stream - INFO - WebSocket Unified V5 (Auth) connected
2024-06-05 11:45:00,723 - websocket - ERROR - Connection to remote host was lost. - goodbye
2024-06-05 11:45:00,753 - api.bitmex.http - INFO - (https) sending GET to execution/tradeHistory?count=500&reverse=false&startTime=2024-06-04 10:51:24: ""
2024-06-05 11:45:00,883 - functions - INFO - Bitmex History Trade Buy: orderID=a0205e45-2af7-4f35-acc8-507135b95f70 clOrdID=1263910261.Xbt1_1 price=62064.9 qty=0.001
2024-06-05 11:45:00,927 - websocket - ERROR - error from callback <function _WebSocketManager._connect.. at 0x7ec660bee950>: Authorization for Unified V5 (Auth) failed. Please check your API keys and resync your system time. Raw error: {'success': False, 'ret_msg': 'Params Error', 'op': 'auth', 'conn_id': 'cno3fi5daugt7mgdqvtg-2vx5b'}
2024-06-05 11:45:00,958 - functions - INFO - Bitmex History Trade Sell: orderID=6bb152e7-d9d4-4662-9486-9c288b5b33ba clOrdID=1265599623.XBTUSDT.linear price=68000.0 qty=0.001
2024-06-05 11:45:01,139 - websocket - ERROR - error from callback <function _WebSocketManager._connect.. at 0x7ec660bef1c0>: Authorization for Unified V5 (Auth) failed. Please check your API keys and resync your system time. Raw error: {'success': False, 'ret_msg': 'Params Error', 'op': 'auth', 'conn_id': 'cno3fi5daugt7mgdqvtg-2vx5b'}
2024-06-05 11:45:01,142 - websocket - INFO - tearing down on exception Authorization for Unified V5 (Auth) failed. Please check your API keys and resync your system time. Raw error: {'success': False, 'ret_msg': 'Params Error', 'op': 'auth', 'conn_id': 'cno3fi5daugt7mgdqvtg-2vx5b'}
2024-06-05 11:45:03,043 - api.bybit.pybit._websocket_stream - ERROR - WebSocket Unified V5 (Auth) (wss://stream-testnet.bybit.com/v5/private) encountered error: ping/pong timed out.
2024-06-05 11:45:03,048 - api.bybit.pybit._websocket_stream - INFO - WebSocket Unified V5 (Auth) attempting connection...
2024-06-05 11:45:03,952 - websocket - INFO - Websocket connected
2024-06-05 11:45:03,952 - api.bybit.pybit._websocket_stream - INFO - WebSocket Unified V5 (Auth) connected
2024-06-05 11:45:03,959 - websocket - ERROR - ping/pong timed out - goodbye
2024-06-05 11:45:04,159 - websocket - ERROR - error from callback <function _WebSocketManager._connect.. at 0x7ec665186200>: Authorization for Unified V5 (Auth) failed. Please check your API keys and resync your system time. Raw error: {'success': False, 'ret_msg': 'Params Error', 'op': 'auth', 'conn_id': 'cno3gd1qo29t7ommtc60-2vwst'}
2024-06-05 11:45:04,365 - websocket - ERROR - error from callback <function _WebSocketManager._connect.. at 0x7ec660b5dc60>: Authorization for Unified V5 (Auth) failed. Please check your API keys and resync your system time. Raw error: {'success': False, 'ret_msg': 'Params Error', 'op': 'auth', 'conn_id': 'cno3gd1qo29t7ommtc60-2vwst'}
2024-06-05 11:45:04,365 - websocket - INFO - tearing down on exception Authorization for Unified V5 (Auth) failed. Please check your API keys and resync your system time. Raw error: {'success': False, 'ret_msg': 'Params Error', 'op': 'auth', 'conn_id': 'cno3gd1qo29t7ommtc60-2vwst'}
2024-06-05 11:45:11,332 - api.bybit.pybit._websocket_stream - ERROR - WebSocket Unified V5 (wss://stream-testnet.bybit.com/v5/public/linear) encountered error: Connection to remote host was lost..
2024-06-05 11:45:11,332 - api.bybit.pybit._websocket_stream - INFO - WebSocket Unified V5 attempting connection...
2024-06-05 11:45:12,081 - websocket - INFO - Websocket connected
2024-06-05 11:45:12,090 - api.bybit.pybit._websocket_stream - INFO - WebSocket Unified V5 connected
2024-06-05 11:45:12,091 - websocket - ERROR - Connection to remote host was lost. - goodbye
2024-06-05 11:45:12,216 - api.bybit.pybit._websocket_stream - ERROR - WebSocket Unified V5 (wss://stream-testnet.bybit.com/v5/public/linear) encountered error: Connection to remote host was lost..
2024-06-05 11:45:12,216 - api.bybit.pybit._websocket_stream - INFO - WebSocket Unified V5 attempting connection...
2024-06-05 11:45:12,218 - api.bybit.pybit._websocket_stream - ERROR - WebSocket Unified V5 (Auth) (wss://stream-testnet.bybit.com/v5/private) encountered error: Connection to remote host was lost..
2024-06-05 11:45:12,218 - api.bybit.pybit._websocket_stream - INFO - WebSocket Unified V5 (Auth) attempting connection...
2024-06-05 11:45:12,934 - websocket - INFO - Websocket connected
2024-06-05 11:45:12,934 - api.bybit.pybit._websocket_stream - INFO - WebSocket Unified V5 connected
2024-06-05 11:45:12,964 - websocket - INFO - Websocket connected
2024-06-05 11:45:12,974 - api.bybit.pybit._websocket_stream - INFO - WebSocket Unified V5 (Auth) connected
2024-06-05 11:45:12,974 - websocket - ERROR - Connection to remote host was lost. - goodbye
2024-06-05 11:45:12,978 - websocket - ERROR - Connection to remote host was lost. - goodbye
2024-06-05 11:45:13,188 - websocket - ERROR - error from callback <function _WebSocketManager._connect.. at 0x7ec660beedd0>: Authorization for Unified V5 (Auth) failed. Please check your API keys and resync your system time. Raw error: {'success': False, 'ret_msg': 'Params Error', 'op': 'auth', 'conn_id': 'cno3fi5daugt7mgdqvtg-2vx5s'}
2024-06-05 11:45:13,401 - websocket - ERROR - error from callback <function _WebSocketManager._connect.. at 0x7ec660beea70>: Authorization for Unified V5 (Auth) failed. Please check your API keys and resync your system time. Raw error: {'success': False, 'ret_msg': 'Params Error', 'op': 'auth', 'conn_id': 'cno3fi5daugt7mgdqvtg-2vx5s'}
2024-06-05 11:45:13,402 - websocket - INFO - tearing down on exception Authorization for Unified V5 (Auth) failed. Please check your API keys and resync your system time. Raw error: {'success': False, 'ret_msg': 'Params Error', 'op': 'auth', 'conn_id': 'cno3fi5daugt7mgdqvtg-2vx5s'}
______Tmatic: Bybit API is still pinging, but the websocket is already closed
______Tmatic: Bybit API is still pinging, but the websocket is already closed
______Tmatic: Bybit API is still pinging, but the websocket is already closed
2024-06-05 11:47:44,582 - functions - INFO - Posting symbol=('BTCUSDT', 'linear', 'Bybit') clOrdID=1264836825.BTCUSDT.linear side=Sell price=81049.9 qty=-0.001
2024-06-05 11:48:21,106 - api.bybit.ws - INFO - Bybit - Websocket closed
2024-06-05 11:48:21,159 - api.bitmex.ws - INFO - Bitmex - Websocket closed
2024-06-05 11:48:21,173 - api.bybit.ws - INFO - Bybit - Websocket closed
2024-06-05 11:48:21,174 - api.bitmex.http - INFO - (https) sending GET to instrument/active: ""
2024-06-05 11:48:21,176 - api.bybit.agent - INFO - Sending get_instruments_info() - category - spot
2024-06-05 11:48:21,179 - api.bybit.agent - INFO - Sending get_instruments_info() - category - inverse
2024-06-05 11:48:21,180 - api.bybit.agent - INFO - Sending get_instruments_info() - category - option
2024-06-05 11:48:21,181 - api.bybit.agent - INFO - Sending get_instruments_info() - category - linear
2024-06-05 11:48:21,294 - api.bitmex.http - INFO - (https) sending GET to order?filter=%7B%22open%22%3A%20true%7D&reverse=false: ""
2024-06-05 11:48:21,375 - api.bitmex.ws - INFO - Connecting to websocket
2024-06-05 11:48:21,375 - api.bitmex.ws - INFO - Authenticating with API key.
2024-06-05 11:48:21,376 - api.bitmex.http - INFO - (https) sending GET to user: ""
2024-06-05 11:48:21,378 - api.bitmex.http - INFO - (https) sending GET to position: ""
2024-06-05 11:48:21,631 - websocket - INFO - Websocket connected
2024-06-05 11:48:21,829 - api.bybit.agent - INFO - Sending open_orders() - parameters - {'openOnly': 0, 'limit': 50, 'category': 'spot', 'cursor': 'no'}
2024-06-05 11:48:21,830 - api.bybit.agent - INFO - Sending open_orders() - parameters - {'openOnly': 0, 'limit': 50, 'category': 'linear', 'settleCoin': 'USDT', 'cursor': 'no'}
2024-06-05 11:48:22,058 - api.bybit.agent - INFO - Sending open_orders() - parameters - {'openOnly': 0, 'limit': 50, 'category': 'linear', 'settleCoin': 'USDT', 'cursor': '54654b2e-ed22-4e34-a0bd-0530d2920336%3A1717588066263%2Caa2205dd-6474-4199-9540-67c7e709a1d7%3A1716477047327'}
2024-06-05 11:48:22,287 - api.bybit.ws - INFO - Connecting to websocket
2024-06-05 11:48:22,287 - api.bybit.agent - INFO - Sending get_uid_wallet_type()
2024-06-05 11:48:22,288 - api.bybit.agent - INFO - Sending get_wallet_balance() - accountType - UNIFIED
2024-06-05 11:48:22,290 - api.bybit.agent - INFO - Sending get_positions() - category - linear - settlCurrency - USDT
2024-06-05 11:48:22,293 - api.bybit.pybit._websocket_stream - INFO - WebSocket Unified V5 attempting connection...
2024-06-05 11:48:22,293 - api.bybit.pybit._websocket_stream - INFO - WebSocket Unified V5 (Auth) attempting connection...
2024-06-05 11:48:22,459 - api.bitmex.ws - INFO - Connected to websocket.
2024-06-05 11:48:22,527 - api.bybit.agent - INFO - Sending get_wallet_balance() - accountType - CONTRACT
2024-06-05 11:48:23,035 - api.bitmex.ws - INFO - Data received. Continuing.
2024-06-05 11:48:23,277 - websocket - INFO - Websocket connected
2024-06-05 11:48:23,277 - websocket - INFO - Websocket connected
2024-06-05 11:48:23,278 - api.bybit.pybit._websocket_stream - INFO - WebSocket Unified V5 (Auth) connected
2024-06-05 11:48:23,278 - api.bybit.pybit._websocket_stream - INFO - WebSocket Unified V5 connected
2024-06-05 11:48:23,279 - api.bybit.ws - INFO - ws subscription - orderbook_stream - category - linear - symbol - ('BTCUSDT', 'linear', 'Bybit')
2024-06-05 11:48:23,279 - api.bybit.ws - INFO - ws subscription - ticker_stream - category - linear - symbol - ('BTCUSDT', 'linear', 'Bybit')
2024-06-05 11:48:23,292 - api.bitmex.http - INFO - (https) sending GET to execution/tradeHistory?count=500&reverse=false&startTime=2024-06-05 07:42:12: ""
2024-06-05 11:48:23,294 - api.bybit.agent - INFO - Sending get_executions() - category - spot - startTime - 2024-06-03 10:17:46+00:00
2024-06-05 11:48:23,296 - api.bybit.agent - INFO - Sending get_executions() - category - inverse - startTime - 2024-06-03 10:17:46+00:00
2024-06-05 11:48:23,297 - api.bybit.agent - INFO - Sending get_executions() - category - option - startTime - 2024-06-03 10:17:46+00:00
2024-06-05 11:48:23,298 - api.bybit.agent - INFO - Sending get_executions() - category - linear - startTime - 2024-06-03 10:17:46+00:00
2024-06-05 11:48:23,495 - websocket - ERROR - error from callback <function _WebSocketManager._connect.. at 0x7ec660bec700>: Authorization for Unified V5 (Auth) failed. Please check your API keys and resync your system time. Raw error: {'success': False, 'ret_msg': 'Params Error', 'op': 'auth', 'conn_id': 'cno3fi5daugt7mgdqvtg-2vxa5'}
2024-06-05 11:48:23,526 - api.bybit.agent - INFO - Sending get_executions() - category - linear - startTime - 2024-06-03 10:17:46+00:00
2024-06-05 11:48:23,535 - api.bybit.agent - INFO - Sending get_executions() - category - spot - startTime - 2024-06-03 10:17:46+00:00
2024-06-05 11:48:23,713 - websocket - ERROR - error from callback <function _WebSocketManager._connect.. at 0x7ec660bec280>: Authorization for Unified V5 (Auth) failed. Please check your API keys and resync your system time. Raw error: {'success': False, 'ret_msg': 'Params Error', 'op': 'auth', 'conn_id': 'cno3fi5daugt7mgdqvtg-2vxa5'}
2024-06-05 11:48:23,713 - websocket - INFO - tearing down on exception Authorization for Unified V5 (Auth) failed. Please check your API keys and resync your system time. Raw error: {'success': False, 'ret_msg': 'Params Error', 'op': 'auth', 'conn_id': 'cno3fi5daugt7mgdqvtg-2vxa5'}
2024-06-05 11:48:23,939 - api.bybit.agent - INFO - Bybit - loading trading history, startTime=2024-06-03 10:17:46+00:00, received: 9 records.
2024-06-05 11:48:24,035 - functions - INFO - Bybit History Trade Buy: orderID=3660ac2d-2b08-4ddf-a776-6d49f3955956 clOrdID=1265745302.Btc1 price=71212.0 qty=0.001
2024-06-05 11:48:24,052 - functions - INFO - Bybit History Trade Buy: orderID=5f5cb3fe-3df0-4c20-9867-3efc1ac89371 clOrdID=1265745303.Btc5 price=71200.0 qty=0.002
2024-06-05 11:48:24,069 - functions - INFO - Bybit History Trade Buy: orderID=05be0e33-8aa4-4c37-8cb1-94672bf38f73 clOrdID=1265745305.BTCUSDT.linear price=71180.0 qty=0.001
2024-06-05 11:48:24,153 - common.init - INFO - Robot EMI=Btc5. Adding to 'robots' with STATUS='NOT DEFINED'
2024-06-05 11:48:35,650 - functions - INFO - Deleting orderID=54654b2e-ed22-4e34-a0bd-0530d2920336 clOrdID=1264836825.BTCUSDT.linear
______Tmatic: Bybit API is still pinging, but the websocket is already closed

from tmatic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.