示例#1
0
        public async Task <GetProductOrderBookResponse> GetProductOrderBook(string productId, int level = 1)
        {
            var request  = new GetProductOrderBookRequest(productId, level);
            var response = await this.GetResponse(request);

            var orderBookResponse = new GetProductOrderBookResponse(response);

            return(orderBookResponse);
        }
        public async Task <GetProductOrderBookResponse> GetProductOrderBook(string productId, int level = 1)
        {
            var request = new GetProductOrderBookRequest(productId, level);

            ExchangeResponse response = null;

            try
            {
                response = await this.GetResponse(request);
            }
            catch (Exception)
            {
                throw new Exception("GetProductOrderBookError");
            }

            var orderBookResponse = new GetProductOrderBookResponse(response);

            return(orderBookResponse);
        }
 public async Task<GetProductOrderBookResponse> GetProductOrderBook(string productId, int level = 1)
 {
     var request = new GetProductOrderBookRequest(productId, level);
     var response = await this.GetResponse(request);
     var orderBookResponse = new GetProductOrderBookResponse(response);
     return orderBookResponse;
 }