package org.knowm.xchange.kucoin.service;

import org.knowm.xchange.currency.CurrencyPair;
import org.knowm.xchange.service.trade.params.TradeHistoryParamCurrencyPair;
import org.knowm.xchange.service.trade.params.TradeHistoryParamPaging;

public class KucoinTradeHistoryParams implements TradeHistoryParamCurrencyPair, TradeHistoryParamPaging {

  private CurrencyPair currencyPair;
  private Integer pageLength;
  private Integer pageNumber;

  @Override
  public Integer getPageLength() {
    return pageLength;
  }

  @Override
  public void setPageLength(Integer pageLength) {

    this.pageLength = pageLength;
  }

  @Override
  public Integer getPageNumber() {

    return pageNumber;
  }

  @Override
  public void setPageNumber(Integer pageNumber) {

    this.pageNumber = pageNumber;
  }

  @Override
  public CurrencyPair getCurrencyPair() {

    return currencyPair;
  }

  @Override
  public void setCurrencyPair(CurrencyPair pair) {

    this.currencyPair = pair;
  }

}

@@ -231,16 +231,114 @@
 mPaging;
+%0Aimport org.knowm.xchange.service.trade.params.TradeHistoryParamsTimeSpan;%0A%0Aimport java.util.Date;
 %0A%0Apublic
@@ -379,16 +379,18 @@
 plements
+%0A 
  TradeHi
@@ -436,17 +436,45 @@
 amPaging
- 
+, TradeHistoryParamsTimeSpan%0A
 %7B%0A%0A  pri
@@ -564,16 +564,66 @@
 eNumber;
+%0A  private Date startTime;%0A  private Date endTime;
 %0A%0A  @Ove
@@ -1155,10 +1155,330 @@
 r;%0A  %7D%0A%0A
+  @Override%0A  public Date getStartTime() %7B%0A%0A    return startTime;%0A  %7D%0A%0A  @Override%0A  public void setStartTime(Date startTime) %7B%0A%0A    this.startTime = startTime;%0A  %7D%0A%0A  @Override%0A  public Date getEndTime() %7B%0A%0A    return endTime;%0A  %7D%0A%0A  @Override%0A  public void setEndTime(Date endTime) %7B%0A%0A    this.endTime = endTime;%0A  %7D%0A%0A
 %7D%0A

Allow to specify (optional) timespan on trade history params.