public Task <IObservable <CurrentCandle> > SubscribeRealtimeDataAsync(ActivePair pair, TimeFrame tf) { WsClient?.SubscribeCandlesAsync(pair, tf).ConfigureAwait(false); var stream = WsClient? .RealTimeCandleInfoObservable .Where(x => x.ActivePair == pair && x.TimeFrame == tf); return(Task.FromResult(stream)); }