// TODO: Transform parameters public async Task <Orders> GetClosedOrdersAsync(string address, string symbol = null, int limit = 300, int offset = 0, long?startMs = null, long?endMs = null, OrderSide?orderSide = null, int?total = 0) { string path = $"orders/closed?address={address}"; path += $"&limit={limit}"; path += $"&offset={offset}"; path += symbol?.Prepend("&symbol="); path += startMs?.ToString().Prepend("&start="); path += endMs?.ToString().Prepend("&end="); path += total?.ToString().Prepend("&total="); path += orderSide?.GetInt().ToString().Prepend("&side="); HttpResponse result = await this.http.GetAsync(this.baseUrl + path); return(JsonConvert.DeserializeObject <Orders>(result.Response)); }