We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 850f447 commit 79aa9bcCopy full SHA for 79aa9bc
ExchangeSharp/API/Exchanges/KuCoin/ExchangeKuCoinAPI.cs
@@ -513,8 +513,9 @@ protected override async Task<IWebSocket> OnGetTradesWebSocketAsync(Func<KeyValu
513
int tunnelInt = 0;
514
while (marketSymbolsList.Count > 0)
515
{ // can only subscribe to 100 symbols per session (started w/ API 2.0)
516
- var nextBatch = marketSymbolsList.GetRange(index: 0, count: 100);
517
- marketSymbolsList.RemoveRange(index: 0, count: 100);
+ var batchSize = marketSymbolsList.Count > 100 ? 100 : marketSymbolsList.Count;
+ var nextBatch = marketSymbolsList.GetRange(index: 0, count: batchSize);
518
+ marketSymbolsList.RemoveRange(index: 0, count: batchSize);
519
// create a new tunnel
520
await _socket.SendMessageAsync(new
521
{
0 commit comments