开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Best practice for cancelmktdata


 

Hello I am currently have this in a foreach loop using
?
?
?if (hasCompleteData || hasPartialData)
? ? ? ? ? ? ? ? {
? ? ? ? ? ? ? ? ? ? ClientSocket.cancelMktData(cancelTickerId);
? ? ? ? ? ? ? ? ? ? MaxSubscriptioncancelledTickerIds.Add(cancelTickerId);
? ? ? ? ? ? ? ? ? ? logBuilder.AppendLine(hasCompleteData
? ? ? ? ? ? ? ? ? ? ? ? ? $"Max Subscription Data Cancel. Complete Data. Ticker Id: {cancelTickerId}"
? ? ? ? ? ? ? ? ? ? ? ? : $"Max Subscription Data Cancel. Partial Data. Ticker Id: {cancelTickerId}");
? ? ? ? ? ? ? ? ? ? return true; // Ticker was successfully canceled
? ? ? ? ? ? ? ?
?

?
My question is should i add sleep between each canceltickerid, I am batching about 300 canceltickerids at once and the tick call backs for each canceltickerids keeps firing,? On the log for example I could call canclemktdata for a specific tickerid and for up to 2 minutes I may still get tick call backs for that partciular tickerid, Will adding sleep allow for faster processing or should i do smaller batches?

Join [email protected] to automatically receive all group messages.