public async Task <OrdersListType> GetAllOrders(OrderFilter filter)
        {
            Base.Http.Request request = CreateRequest();
            filter.FullfilRequest(request);
            request.EndpointUri = "/v2/orders";
            IResponse response = await client.GetAsync(request);

            OrdersListType result = await ProcessResponse <OrdersListType>(response);

            return(result);
        }
        public async Task <OrdersListType> GetAllOrders(OrderFilter filter)
        {
            // to avoid deadlock if this method is executed synchronously
            await new ContextRemover();

            Base.Http.Request request = CreateRequest();
            filter.FullfilRequest(request);
            request.EndpointUri = "/v3/orders";
            IResponse response = await client.GetAsync(request);

            OrdersListType result = await ProcessResponse <OrdersListType>(response);

            return(result);
        }