bybit-exchange/pybit

Websocket Timeout error

Opened this issue · 0 comments

Hi, getting a timeout error and 403 Forbidden on what seems to be the most basic websocket connection ?

WebSocketTimeoutException: WebSocket Unified V5 (wss://stream-testnet.bybit.com/v5/public/linear) connection failed. Too many connection attempts. pybit will no longer try to reconnect.

!pip install pybit
!pip show pybit
!pip install pandas-ta
from pybit.unified_trading import WebSocket
from time import sleep
import json
import time
from datetime import datetime, timedelta
import collections
import pandas as pd # Import pandas first
import pandas_ta as ta # or import talib if you're using TA-Lib

ws = WebSocket(
testnet="True",
channel_type="linear",
)