Skip to content

Websocket Timeout error  #257

@bbouisse

Description

@bbouisse

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",
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions