public Task<Ticker> GetTickerAsync(TickerSymbol symbol)
		{
			if (!Enum.IsDefined(typeof(TickerSymbol), symbol))
				throw new ArgumentException("symbol");

			var request = new GetTickerMessageBuilder(symbol);
			return SendAsync(request).ReadAsAsync<Ticker>();
		}
Exemple #2
0
        public Task <Ticker> GetTickerAsync(TickerSymbol symbol)
        {
            if (!Enum.IsDefined(typeof(TickerSymbol), symbol))
            {
                throw new ArgumentException("symbol");
            }

            var request = new GetTickerMessageBuilder(symbol);

            return(SendAsync(request).ReadAsAsync <Ticker>());
        }