JKorf / Bybit.Net

A C# .netstandard client library for the Bybit REST and Websocket V5 API focusing on clear usage and models
https://jkorf.github.io/Bybit.Net/
92 stars 65 forks source link

Getting Coin-M price information with WebSocket #138

Closed emin-karadag closed 1 year ago

emin-karadag commented 1 year ago

Hello, I am using Bybit.Net v2.0.4.

I want to get Bybit Coin-M price information using WebSocket. When I write a code like below, websocket does not respond. Am I using it wrong? How do you think I can get Coin-M instant ticker information? Thanks.

Example:

await _socketClient.V5LinearStreams.SubscribeToTickerUpdatesAsync("BTCUSD", tickerUpdate =>
{
    if (tickerUpdate != null)
    {

    }
}, stoppingToken);
JKorf commented 1 year ago

BTCUSD is not a valid symbol, try BTCUSDT