I'm working on connecting to trading data with Rx.NET library and what I want to do is continuously buffer last 100 seconds of data and analyze it every 2 seconds. I'm using the following Buffer method overload:
tradeStream
.Buffer(TimeSpan.FromSeconds(100), TimeSpan.FromSeconds(2))
.Subscribe(data =>
{
//...
});
The problem now is it works as 100 seconds buffer + it waits for 2 seconds. Is there a way to take a sort of "snapshot" of last 100 seconds immediately with certain interval?
