docs: @Override
    public Trades getTrades(CurrencyPair currencyPair, Object... args) throws IOException {
  
      String marketName = DSXAdapters.currencyPairToMarketName(currencyPair);
  
      int numberOfItems = -1;
      try {
        if (args != null) {
          numberOfItems =
              (Integer)
                  args[0]; // can this really be args[0] if we are also using args[0] as a string//
          // below??
        }
      } catch (ArrayIndexOutOfBoundsException e) {
        // ignore, can happen if no argument given.
      }
      DSXTrade[] dsxTrades;
  
      String accountType = null;
      try {
        if (args != null) {
          accountType = (String) args[1];
        }
      } catch (ArrayIndexOutOfBoundsException e) {
        // ignore, can happen if no argument given.
      }
  
      if (numberOfItems == -1) {
        dsxTrades = getDSXTrades(marketName, FULL_SIZE, accountType).getTrades(marketName);
      } else {
        dsxTrades = getDSXTrades(marketName, numberOfItems, accountType).getTrades(marketName);
      }
      return DSXAdapters.adaptTrades(dsxTrades, currencyPair);
    }