public async Task<GetFillsResponse> GetFills()
 {
     var request = new GetFillsRequest();
     var response = await this.GetResponse(request);
     var accountHistoryResponse = new GetFillsResponse(response);
     return accountHistoryResponse;
 }
        public async Task <GetFillsResponse> GetFills()
        {
            var request  = new GetFillsRequest();
            var response = await this.GetResponse(request);

            var accountHistoryResponse = new GetFillsResponse(response);

            return(accountHistoryResponse);
        }
Exemple #3
0
        public async Task <FillResponse> GetFills()
        {
            var endpoint = String.Format("/fills");
            var request  = new GetFillsRequest(endpoint);

            ExchangeResponse response = null;

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

            var accountHistoryResponse = new FillResponse(response);

            return(accountHistoryResponse);
        }
Exemple #4
0
        public async Task <FillResponse> GetFillStatus(string orderId)
        {
            var endpoint = string.Format(@"/fills?order_id={0}", orderId);
            var request  = new GetFillsRequest(endpoint);


            ExchangeResponse response = null;

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


            var orderStats = new FillResponse(response);

            return(orderStats);
        }