class BitbayMarketDataServiceRaw extends BitbayBaseService {

  /**
   * Constructor
   *
   * @param exchange
   */
  protected BitbayMarketDataServiceRaw(Exchange exchange) {

    super(exchange);
  }

  public BitbayTicker getBitbayTicker(CurrencyPair currencyPair) throws IOException {

    return bitbay.getBitbayTicker(
        currencyPair.base.getCurrencyCode().toUpperCase() + currencyPair.counter.getCurrencyCode());
  }

  public BitbayOrderBook getBitbayOrderBook(CurrencyPair currencyPair) throws IOException {

    return bitbay.getBitbayOrderBook(
        currencyPair.base.getCurrencyCode().toUpperCase() + currencyPair.counter.getCurrencyCode());
  }

  public BitbayTrade[] getBitbayTrades(CurrencyPair currencyPair, Object[] args)
      throws IOException {<FILL_FUNCTION_BODY>}
}

    long since = 0;
    if (args.length >= 1 && args[0] != null) {
      since = ((Number) args[0]).longValue();
    }
    String sort = "asc";
    if (args.length >= 2) {
      sort = (String) args[1];
    }
    int limit = 50; // param works up to 150
    if (args.length == 3) {
      limit = ((Number) args[2]).intValue();
    }
    return bitbay.getBitbayTrades(
        currencyPair.base.getCurrencyCode().toUpperCase() + currencyPair.counter.getCurrencyCode(),
        since,
        sort,
        limit);
  
<methods><variables>final non-sealed java.lang.String apiKey,protected final non-sealed org.knowm.xchange.bitbay.Bitbay bitbay,final non-sealed org.knowm.xchange.bitbay.BitbayAuthenticated bitbayAuthenticated,final non-sealed ParamsDigest sign