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.04k stars 428 forks source link

How can I get out of the loop? #1316

Closed HoLyDreaM closed 10 months ago

HoLyDreaM commented 12 months ago

Hello, I can enter the function below and it returns the data according to the parameter I give, but what I want is something like this; After completing the operations, I want it to leave this area and return to the beginning within a while loop, but I could not do it.

var subscription = await socketClient.SpotApi.ExchangeData.SubscribeToKlineUpdatesAsync(SymBolName, Binance.Net.Enums.KlineInterval.OneMinute, async data => {

}

JKorf commented 10 months ago

Not an issue with the library

HoLyDreaM commented 10 months ago

I'm not saying it's a problem with the library. Once it gets into this loop, it doesn't come out. Is there any way to do this?