package org.knowm.xchange.kucoin.service;

import org.knowm.xchange.kucoin.dto.response.HistOrdersResponse;
import org.knowm.xchange.kucoin.dto.response.KucoinResponse;
import org.knowm.xchange.kucoin.dto.response.Pagination;
import si.mazi.rescu.ParamsDigest;
import si.mazi.rescu.SynchronizedValueFactory;

import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;
import java.io.IOException;

@Path("/api/v1/hist-orders")
@Produces(MediaType.APPLICATION_JSON)
public interface HistOrdersAPI {

  /**
   * Get a list of recent fills.
   *
   * @param symbol      [optional] Limit list of fills to this orderId
   * @param side        [optional] buy or sell
   * @param startAt     [optional] Start time. unix timestamp calculated in milliseconds, the creation
   *                    time queried shall posterior to the start time.
   * @param endAt       [optional] End time. unix timestamp calculated in milliseconds, the creation time
   *                    queried shall prior to the end time.
   * @param pageSize    [optional] The page size.
   * @param currentPage [optional] The page to select.
   * @return Trades.
   */
  @GET
  KucoinResponse<Pagination<HistOrdersResponse>> queryHistOrders(
      @HeaderParam(APIConstants.API_HEADER_KEY) String apiKey,
      @HeaderParam(APIConstants.API_HEADER_SIGN) ParamsDigest signature,
      @HeaderParam(APIConstants.API_HEADER_TIMESTAMP) SynchronizedValueFactory<Long> nonce,
      @HeaderParam(APIConstants.API_HEADER_PASSPHRASE) String apiPassphrase,
      @QueryParam("symbol") String symbol,
      @QueryParam("side") String side,
      @QueryParam("startAt") Long startAt,
      @QueryParam("endAt") Long endAt,
      @QueryParam("pageSize") int pageSize,
      @QueryParam("currentPage") int currentPage)
      throws IOException;
}

@@ -552,21 +552,16 @@
  symbol 
-     
 %5Boptiona
@@ -616,23 +616,16 @@
 am side 
-       
 %5Boptiona
@@ -659,20 +659,16 @@
 startAt 
-    
 %5Boptiona
@@ -738,39 +738,24 @@
 reation%0A   *
-               
      time qu
@@ -813,22 +813,16 @@
 m endAt 
-      
 %5Boptiona
@@ -899,31 +899,16 @@
 ime%0A   *
-               
      que
@@ -962,19 +962,16 @@
 ageSize 
-   
 %5Boptiona

Reformat using google-java-format