Ejemplo n.º 1
0
        public IObservable <PriceDto> GetSpotStream(string currencyPair)
        {
            if (string.IsNullOrEmpty(currencyPair))
            {
                throw new ArgumentException("currencyPair");
            }

            var request = new GetSpotStreamRequestDto {
                Symbol = currencyPair
            };

            _log.Info($"Subscribing to prices for ccy pair {currencyPair}");

            return(_serviceClient.CreateStreamOperation <GetSpotStreamRequestDto, PriceDto>("getPriceUpdates", request));
        }
Ejemplo n.º 2
0
 public IObservable <SpotPriceDto> GetPriceUpdates(IRequestContext context, GetSpotStreamRequestDto request)
 {
     return(_source.GetPriceStream(request.symbol));
 }