class CoinmateMarketDataService extends CoinmateMarketDataServiceRaw
    implements MarketDataService {

  private static final int TRANSACTIONS_MINUTES_INTO_HISTORY = 60;

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

  @Override
  public Ticker getTicker(CurrencyPair currencyPair, Object... args) throws IOException {

    return CoinmateAdapters.adaptTicker(
        getCoinmateTicker(CoinmateUtils.getPair(currencyPair)), currencyPair);
  }

  @Override
  public List<Ticker> getTickers(Params params) throws IOException {
    return CoinmateAdapters.adaptTickers(getCoinmateTickers());
  }

  @Override
  public OrderBook getOrderBook(CurrencyPair currencyPair, Object... args) throws IOException {

    return CoinmateAdapters.adaptOrderBook(
        getCoinmateOrderBook(CoinmateUtils.getPair(currencyPair), true), currencyPair);
  }

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

    int minutesIntoHistory = TRANSACTIONS_MINUTES_INTO_HISTORY;
    if (args.length == 1 && (args[0] instanceof Integer)) {
      minutesIntoHistory = (int) args[0];
    }
    return CoinmateAdapters.adaptTrades(
        getCoinmateTransactions(minutesIntoHistory, CoinmateUtils.getPair(currencyPair)));
  
<methods>public void <init>(org.knowm.xchange.Exchange) ,public org.knowm.xchange.coinmate.dto.marketdata.CoinmateQuickRate getCoinmateBuyQuickRate(java.math.BigDecimal, java.lang.String) throws java.io.IOException,public org.knowm.xchange.coinmate.dto.marketdata.CoinmateOrderBook getCoinmateOrderBook(java.lang.String, boolean) throws java.io.IOException,public org.knowm.xchange.coinmate.dto.marketdata.CoinmateQuickRate getCoinmateSellQuickRate(java.math.BigDecimal, java.lang.String) throws java.io.IOException,public org.knowm.xchange.coinmate.dto.marketdata.CoinmateTicker getCoinmateTicker(java.lang.String) throws java.io.IOException,public org.knowm.xchange.coinmate.dto.marketdata.CoinmateTickers getCoinmateTickers() throws java.io.IOException,public org.knowm.xchange.coinmate.dto.marketdata.CoinmateTransactions getCoinmateTransactions(int, java.lang.String) throws java.io.IOException<variables>private final non-sealed org.knowm.xchange.coinmate.Coinmate coinmate