class CoindealTradeServiceRaw extends CoindealBaseService {

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

  public List<CoindealTradeHistory> getCoindealTradeHistory(
      CurrencyPair currencyPair, Integer limit) throws IOException {<FILL_FUNCTION_BODY>}

  public CoindealOrder placeOrder(LimitOrder limitOrder) throws IOException {
    try {
      return coindeal.placeOrder(
          basicAuthentication,
          CoindealAdapters.adaptCurrencyPairToString(limitOrder.getCurrencyPair()),
          CoindealAdapters.adaptOrderType(limitOrder.getType()),
          "limit",
          "GTC",
          limitOrder.getOriginalAmount().doubleValue(),
          limitOrder.getLimitPrice().doubleValue());
    } catch (CoindealException e) {
      throw CoindealErrorAdapter.adapt(e);
    }
  }

  public List<CoindealOrder> cancelCoindealOrders(CurrencyPair currencyPair) throws IOException {
    try {
      return coindeal.cancelOrders(
          basicAuthentication, CoindealAdapters.adaptCurrencyPairToString(currencyPair));
    } catch (CoindealException e) {
      throw CoindealErrorAdapter.adapt(e);
    }
  }

  public CoindealOrder cancelCoindealOrderById(String orderId) throws IOException {
    try {
      return coindeal.cancelOrderById(basicAuthentication, orderId);
    } catch (CoindealException e) {
      throw CoindealErrorAdapter.adapt(e);
    }
  }

  public List<CoindealOrder> getCoindealActiveOrders(CurrencyPair currencyPair) throws IOException {
    try {
      return coindeal.getActiveOrders(
          basicAuthentication, CoindealAdapters.adaptCurrencyPairToString(currencyPair));
    } catch (CoindealException e) {
      throw CoindealErrorAdapter.adapt(e);
    }
  }

  public CoindealOrder getCoindealOrderById(String orderId) throws IOException {
    try {
      return coindeal.getOrderById(basicAuthentication, orderId);
    } catch (CoindealException e) {
      throw CoindealErrorAdapter.adapt(e);
    }
  }
}

    try {
      return coindeal.getTradeHistory(
          basicAuthentication, CoindealAdapters.adaptCurrencyPairToString(currencyPair), limit);
    } catch (CoindealException e) {
      throw CoindealErrorAdapter.adapt(e);
    }
  
<methods>public void <init>(org.knowm.xchange.Exchange) <variables>protected ParamsDigest basicAuthentication,protected org.knowm.xchange.coindeal.CoindealAuthenticated coindeal