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

			var request = new GetOrderBookMessageBuilder(symbol);
			return SendAsync(request).ReadAsAsync<OrderBook, OrderBookMediaTypeFormatter>();
		}
Example #2
0
        public Task <OrderBook> GetOrderBookAsync(TickerSymbol symbol)
        {
            if (!Enum.IsDefined(typeof(TickerSymbol), symbol))
            {
                throw new ArgumentException("symbol");
            }

            var request = new GetOrderBookMessageBuilder(symbol);

            return(SendAsync(request).ReadAsAsync <OrderBook, OrderBookMediaTypeFormatter>());
        }