SubscribeToTickerUpdatesAsync doesn't get new data on best bid / best ask changes
yanivshaked opened this issue · 3 comments
Describe the bug
Using SubscribeToTickerUpdatesAsync, I'm subscribing to "BTC/USD" ticker updates while following the best bid / best ask updates for the same symbol on https://trade.kraken.com/charts/KRAKEN:BTC-USD.
It seems that the action provided on SubscribeToTickerUpdatesAsync doesn't get called when best bid / best ask are updates, only when last trade is updated.
To Reproduce
var cr = await client.SpotStreams.SubscribeToTickerUpdatesAsync("BTC/USD", d =>
{
d.Timestamp.Dump($"BestAsk:{d.Data.BestAsks.Price} BestBid:{d.Data.BestBids.Price}");
});
cr.Success.Dump();
Console.ReadLine();
client.Dispose();
Expected behavior
Expecting updates also on BestAsk/BestBid changes.
@JKorf Can you please shed some light on this issue?
Hi, I think the ticker updates might be throttled and it might not update real time. If you're looking for real time best bid/ask info you could subscribe using the SubscribeToSpreadUpdatesAsync
method.
Hope that helps
Thanks @JKorf , it works as expected!