JKorf / Binance.Net

A C# .netstandard client library for the Binance REST and Websocket Spot and Futures API focusing on clear usage and models
https://jkorf.github.io/Binance.Net/
MIT License
1.05k stars 429 forks source link

Error `Can't connect to the server` in Subscribe methode #1437

Open luke313 opened 1 month ago

luke313 commented 1 month ago

@JKorf First of all thank you for creating this library.

In my app I create a socketClient to receive data from Binance. All methods were working, but when I use the Subscribe method, I get this error message: "Can't connect to the server".

I am running the latest version of nuget. in .netframework 4.7.2

code: var result = await socketClient.SpotApi.ExchangeData.SubscribeToTickerUpdatesAsync("FTMUSDT", data => { label1.Text = data.Data.LastPrice.ToString(); });