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)); }
public IObservable <SpotPriceDto> GetPriceUpdates(IRequestContext context, GetSpotStreamRequestDto request) { return(_source.GetPriceStream(request.symbol)); }