class CCEXTradeService extends CCEXTradeServiceRaw implements TradeService {

  public CCEXTradeService(Exchange exchange) {
    super(exchange);
  }

  @Override
  public OpenOrders getOpenOrders() throws IOException {
    return getOpenOrders(createOpenOrdersParams());
  }

  @Override
  public OpenOrders getOpenOrders(OpenOrdersParams params) throws IOException {
    return new OpenOrders(CCEXAdapters.adaptOpenOrders(getCCEXOpenOrders()));
  }

  @Override
  public String placeMarketOrder(MarketOrder marketOrder) throws IOException {
    throw new NotAvailableFromExchangeException();
  }

  @Override
  public String placeLimitOrder(LimitOrder limitOrder) throws IOException {
    String id = placeCCEXLimitOrder(limitOrder);

    return id;
  }

  @Override
  public boolean cancelOrder(String orderId) throws IOException {
    return cancelCCEXLimitOrder(orderId);
  }

  @Override
  public boolean cancelOrder(CancelOrderParams orderParams) throws IOException {<FILL_FUNCTION_BODY>}

  @Override
  public UserTrades getTradeHistory(TradeHistoryParams params) throws IOException {
    return new UserTrades(
        CCEXAdapters.adaptUserTrades(getCCEXTradeHistory()), TradeSortType.SortByTimestamp);
  }

  @Override
  public TradeHistoryParams createTradeHistoryParams() {
    return PARAMS_ZERO;
  }

  @Override
  public OpenOrdersParams createOpenOrdersParams() {
    return null;
  }
}

    if (orderParams instanceof CancelOrderByIdParams) {
      return cancelOrder(((CancelOrderByIdParams) orderParams).getOrderId());
    } else {
      return false;
    }
  
<methods>public void <init>(org.knowm.xchange.Exchange) ,public boolean cancelCCEXLimitOrder(java.lang.String) throws java.io.IOException,public List<org.knowm.xchange.ccex.dto.trade.CCEXOpenorder> getCCEXOpenOrders() throws java.io.IOException,public List<org.knowm.xchange.ccex.dto.trade.CCEXOrderhistory> getCCEXTradeHistory() throws java.io.IOException,public java.lang.String placeCCEXLimitOrder(org.knowm.xchange.dto.trade.LimitOrder) throws java.io.IOException<variables>