class OkCoinMarketDataService extends OkCoinMarketDataServiceRaw
    implements MarketDataService {

  /**
   * Constructor
   *
   * @param exchange
   */
  public OkCoinMarketDataService(Exchange exchange) {

    super(exchange);
  }

  @Override
  public Ticker getTicker(CurrencyPair currencyPair, Object... args) throws IOException {
    return OkCoinAdapters.adaptTicker(getTicker(currencyPair), currencyPair);
  }

  @Override
  public OrderBook getOrderBook(CurrencyPair currencyPair, Object... args) throws IOException {
    return OkCoinAdapters.adaptOrderBook(getDepth(currencyPair), currencyPair);
  }

  @Override
  public Trades getTrades(CurrencyPair currencyPair, Object... args) throws IOException {<FILL_FUNCTION_BODY>}
}

    final OkCoinTrade[] trades;

    if (args == null || args.length == 0) {
      trades = getTrades(currencyPair);
    } else {
      trades = getTrades(currencyPair, (Long) args[0]);
    }
    return OkCoinAdapters.adaptTrades(trades, currencyPair);
  
<methods>public void <init>(org.knowm.xchange.Exchange) ,public org.knowm.xchange.okcoin.dto.marketdata.OkCoinDepth getDepth(org.knowm.xchange.currency.CurrencyPair) throws java.io.IOException,public org.knowm.xchange.okcoin.dto.marketdata.OkCoinDepth getDepth(org.knowm.xchange.currency.CurrencyPair, java.lang.Integer) throws java.io.IOException,public org.knowm.xchange.okcoin.dto.marketdata.OkCoinFutureComment getExchangRate_US_CH() throws java.io.IOException,public org.knowm.xchange.okcoin.dto.marketdata.OkCoinFutureComment getFutureEstimatedPrice(org.knowm.xchange.currency.CurrencyPair) throws java.io.IOException,public org.knowm.xchange.okcoin.dto.marketdata.OkCoinFutureHoldAmount[] getFutureHoldAmount(org.knowm.xchange.currency.CurrencyPair, org.knowm.xchange.okcoin.FuturesContract) throws java.io.IOException,public List<org.knowm.xchange.okcoin.dto.marketdata.OkCoinFutureKline> getFutureKline(org.knowm.xchange.currency.CurrencyPair, org.knowm.xchange.okcoin.dto.marketdata.OkCoinKlineType, org.knowm.xchange.okcoin.FuturesContract, java.lang.Integer, java.lang.Long) throws java.io.IOException,public List<org.knowm.xchange.okcoin.dto.marketdata.OkCoinFutureKline> getFutureKline(org.knowm.xchange.currency.CurrencyPair, org.knowm.xchange.okcoin.dto.marketdata.OkCoinKlineType, org.knowm.xchange.okcoin.FuturesContract) throws java.io.IOException,public List<org.knowm.xchange.okcoin.dto.marketdata.OkCoinFutureKline> getFutureKline(org.knowm.xchange.currency.CurrencyPair, org.knowm.xchange.okcoin.dto.marketdata.OkCoinKlineType, org.knowm.xchange.okcoin.FuturesContract, java.lang.Integer) throws java.io.IOException,public List<org.knowm.xchange.okcoin.dto.marketdata.OkCoinFutureKline> getFutureKline(org.knowm.xchange.currency.CurrencyPair, org.knowm.xchange.okcoin.dto.marketdata.OkCoinKlineType, org.knowm.xchange.okcoin.FuturesContract, java.lang.Long) throws java.io.IOException,public org.knowm.xchange.okcoin.dto.marketdata.OkCoinFutureComment getFuturePriceLimit(org.knowm.xchange.currency.CurrencyPair, org.knowm.xchange.okcoin.FuturesContract) throws java.io.IOException,public org.knowm.xchange.okcoin.dto.marketdata.OkCoinDepth getFuturesDepth(org.knowm.xchange.currency.CurrencyPair, org.knowm.xchange.okcoin.FuturesContract) throws java.io.IOException,public org.knowm.xchange.okcoin.dto.marketdata.OkCoinFutureComment getFuturesIndex(org.knowm.xchange.currency.CurrencyPair) throws java.io.IOException,public org.knowm.xchange.okcoin.dto.marketdata.OkCoinFutureComment getFuturesIndex(java.lang.String) throws java.io.IOException,public org.knowm.xchange.okcoin.dto.marketdata.OkCoinTickerResponse getFuturesTicker(org.knowm.xchange.currency.CurrencyPair, org.knowm.xchange.okcoin.FuturesContract) throws java.io.IOException,public org.knowm.xchange.okcoin.dto.marketdata.OkCoinTrade[] getFuturesTrades(org.knowm.xchange.currency.CurrencyPair, org.knowm.xchange.okcoin.FuturesContract) throws java.io.IOException,public List<org.knowm.xchange.okcoin.dto.marketdata.OkCoinKline> getKlines(org.knowm.xchange.currency.CurrencyPair, org.knowm.xchange.okcoin.dto.marketdata.OkCoinKlineType) throws java.io.IOException,public List<org.knowm.xchange.okcoin.dto.marketdata.OkCoinKline> getKlines(org.knowm.xchange.currency.CurrencyPair, org.knowm.xchange.okcoin.dto.marketdata.OkCoinKlineType, java.lang.Integer) throws java.io.IOException,public List<org.knowm.xchange.okcoin.dto.marketdata.OkCoinKline> getKlines(org.knowm.xchange.currency.CurrencyPair, org.knowm.xchange.okcoin.dto.marketdata.OkCoinKlineType, java.lang.Long) throws java.io.IOException,public List<org.knowm.xchange.okcoin.dto.marketdata.OkCoinKline> getKlines(org.knowm.xchange.currency.CurrencyPair, org.knowm.xchange.okcoin.dto.marketdata.OkCoinKlineType, java.lang.Integer, java.lang.Long) throws java.io.IOException,public org.knowm.xchange.okcoin.dto.marketdata.OkCoinTickerResponse getTicker(org.knowm.xchange.currency.CurrencyPair) throws java.io.IOException,public org.knowm.xchange.okcoin.dto.marketdata.OkCoinTrade[] getTrades(org.knowm.xchange.currency.CurrencyPair) throws java.io.IOException,public org.knowm.xchange.okcoin.dto.marketdata.OkCoinTrade[] getTrades(org.knowm.xchange.currency.CurrencyPair, java.lang.Long) throws java.io.IOException<variables>private final non-sealed org.knowm.xchange.okcoin.OkCoin okCoin