Exemple #1
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 #2
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);
        }