class BTCTurkMarketDataService extends BTCTurkMarketDataServiceRaw
    implements MarketDataService {

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

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

  @Override
  public List<Ticker> getTickers(Params params) throws IOException {
    return BTCTurkAdapters.adaptTicker(super.getBTCTurkTicker());
  }

  @Override
  public List<CurrencyPair> getExchangeSymbols() throws IOException {
    return super.getExchangeSymbols();
  }

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

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

    Integer last = args.length > 0 ? (Integer) args[0] : null;
    if (last != null) {
      if (last > 500) // Max. value for last parameter is 500)
      last = 500;
      return BTCTurkAdapters.adaptTrades(super.getBTCTurkTrades(currencyPair, last), currencyPair);
    } else
      return BTCTurkAdapters.adaptTrades(super.getBTCTurkTrades(currencyPair, 50), currencyPair);
  
<methods>public void <init>(org.knowm.xchange.Exchange) ,public List<org.knowm.xchange.btcturk.dto.marketdata.BTCTurkOHLC> getBTCTurkOHLC(org.knowm.xchange.currency.CurrencyPair) throws java.io.IOException,public List<org.knowm.xchange.btcturk.dto.marketdata.BTCTurkOHLC> getBTCTurkOHLC(org.knowm.xchange.currency.CurrencyPair, java.lang.Integer) throws java.io.IOException,public org.knowm.xchange.btcturk.dto.marketdata.BTCTurkOrderBook getBTCTurkOrderBook(org.knowm.xchange.currency.CurrencyPair) throws java.io.IOException,public org.knowm.xchange.btcturk.dto.marketdata.BTCTurkTicker getBTCTurkTicker(org.knowm.xchange.currency.CurrencyPair) throws java.io.IOException,public List<org.knowm.xchange.btcturk.dto.marketdata.BTCTurkTicker> getBTCTurkTicker() throws java.io.IOException,public List<org.knowm.xchange.btcturk.dto.marketdata.BTCTurkTrades> getBTCTurkTrades(org.knowm.xchange.currency.CurrencyPair, java.lang.Integer) throws java.io.IOException,public List<org.knowm.xchange.currency.CurrencyPair> getExchangeSymbols() throws java.io.IOException<variables>