示例#1
0
        public Task <IObservable <CurrentCandle> > SubscribeRealtimeQuoteAsync(ActivePair pair, TimeFrame tf)
        {
            WsClient?.SubscribeQuoteAsync(pair, tf).ConfigureAwait(false);

            var stream = WsClient?
                         .RealTimeCandleInfoObservable
                         .Where(x => x.ActivePair == pair && x.TimeFrame == tf);

            return(Task.FromResult(stream));
        }