package org.knowm.xchange.enigma.service;

import org.knowm.xchange.Exchange;
import org.knowm.xchange.dto.Order;
import org.knowm.xchange.dto.trade.*;
import org.knowm.xchange.enigma.model.EnigmaException;
import org.knowm.xchange.service.trade.TradeService;
import org.knowm.xchange.service.trade.params.CancelOrderParams;
import org.knowm.xchange.service.trade.params.TradeHistoryParams;
import org.knowm.xchange.service.trade.params.orders.OpenOrdersParams;
import org.knowm.xchange.service.trade.params.orders.OrderQueryParams;

import java.io.IOException;
import java.util.Collection;
import java.util.Collections;

public class EnigmaTradeService extends EnigmaTradeServiceRaw implements TradeService {

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

  @Override
  public boolean cancelOrder(String orderId) throws IOException, EnigmaException {
    return cancelOrder(Integer.parseInt(orderId)).isResult();
  }

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

  @Override
  public OpenOrders getOpenOrders(OpenOrdersParams params) throws IOException {
    return null;
  }

  @Override
  public String placeMarketOrder(MarketOrder marketOrder) throws IOException {
    return null;
  }

  @Override
  public String placeLimitOrder(LimitOrder limitOrder) throws IOException {
    return null;
  }

  @Override
  public String placeStopOrder(StopOrder stopOrder) throws IOException {
    return null;
  }

  @Override
  public String changeOrder(LimitOrder limitOrder) throws IOException {
    return null;
  }

  @Override
  public boolean cancelOrder(CancelOrderParams orderParams) throws IOException {
    return false;
  }

  @Override
  public UserTrades getTradeHistory(TradeHistoryParams params) throws IOException {
    return null;
  }

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

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

  @Override
  public Collection<Order> getOrder(String... orderIds) throws IOException {
    return Collections.emptyList();
  }

  @Override
  public Collection<Order> getOrder(OrderQueryParams... orderQueryParams) throws IOException {
    return Collections.emptyList();
  }
}

@@ -1,8 +1,9 @@
+%0A
 package 
@@ -37,16 +37,44 @@
 rvice;%0A%0A
+import java.io.IOException;%0A
 import o
@@ -104,82 +104,8 @@
 ge;%0A
-import org.knowm.xchange.dto.Order;%0Aimport org.knowm.xchange.dto.trade.*;%0A
 impo
@@ -212,2024 +212,331 @@
 ce;%0A
-import org.knowm.xchange.service.trade.params.CancelOrderParams;%0Aimport org.knowm.xchange.service.trade.params.TradeHistoryParams;%0Aimport org.knowm.xchange.service.trade.params.orders.OpenOrdersParams;%0Aimport org.knowm.xchange.service.trade.params.orders.OrderQueryParams;%0A%0Aimport java.io.IOException;%0Aimport java.util.Collection;%0Aimport java.util.Collections;%0A%0Apublic class EnigmaTradeService extends EnigmaTradeServiceRaw implements TradeService %7B%0A%0A  public EnigmaTradeService(Exchange exchange) %7B%0A    super(exchange);%0A  %7D%0A%0A  @Override%0A  public boolean cancelOrder(String orderId) throws IOException, EnigmaException %7B%0A    return cancelOrder(Integer.parseInt(orderId)).isResult();%0A  %7D%0A%0A  @Override%0A  public OpenOrders getOpenOrders() throws IOException %7B%0A    return null;%0A  %7D%0A%0A  @Override%0A  public OpenOrders getOpenOrders(OpenOrdersParams params) throws IOException %7B%0A    return null;%0A  %7D%0A%0A  @Override%0A  public String placeMarketOrder(MarketOrder marketOrder) throws IOException %7B%0A    return null;%0A  %7D%0A%0A  @Override%0A  public String placeLimitOrder(LimitOrder limitOrder) throws IOException %7B%0A    return null;%0A  %7D%0A%0A  @Override%0A  public String placeStopOrder(StopOrder stopOrder) throws IOException %7B%0A    return null;%0A  %7D%0A%0A  @Override%0A  public String changeOrder(LimitOrder limitOrder) throws IOException %7B%0A    return null;%0A  %7D%0A%0A  @Override%0A  public boolean cancelOrder(CancelOrderParams orderParams) throws IOException %7B%0A    return false;%0A  %7D%0A%0A  @Override%0A  public UserTrades getTradeHistory(TradeHistoryParams params) throws IOException %7B%0A    return null;%0A  %7D%0A%0A  @Override%0A  public TradeHistoryParams createTradeHistoryParams() %7B%0A    return null;%0A  %7D%0A%0A  @Override%0A  public OpenOrdersParams createOpenOrdersParams() %7B%0A    return null;%0A  %7D%0A%0A  @Override%0A  public Collection%3COrder%3E getOrder(String... orderIds) throws IOException %7B%0A    return Collections.emptyList();%0A  %7D%0A%0A  @Override%0A  public Collection%3COrder%3E getOrder(OrderQueryParams... orderQueryParams) throws IOException %7B%0A    return Collections.emptyList();%0A  %7D%0A%7D%0A
+%0Apublic class EnigmaTradeService extends EnigmaTradeServiceRaw implements TradeService %7B%0A%0A  public EnigmaTradeService(Exchange exchange) %7B%0A    super(exchange);%0A  %7D%0A%0A  @Override%0A  public boolean cancelOrder(String orderId) throws IOException, EnigmaException %7B%0A    return cancelOrder(Integer.parseInt(orderId)).isResult();%0A  %7D%0A%7D

remove unnecessary implementations