public static Trades adaptTrades(List<ANXTrade> anxTrades) {

    List<Trade> tradesList = new ArrayList<>();
    long latestTid = 0;
    for (ANXTrade anxTrade : anxTrades) {
      long tid = anxTrade.getTid();
      if (tid > latestTid) {
        latestTid = tid;
      }
      tradesList.add(adaptTrade(anxTrade));
    }
    return new Trades(tradesList, latestTid, TradeSortType.SortByID);
  }
public static Trades adaptTrades ( List < ANXTrade > anxTrades ) { List < Trade > tradesList = new ArrayList < > ( ) ; long latestTid = 0 ; for ( ANXTrade anxTrade : anxTrades ) { long tid = anxTrade . getTid ( ) ; if ( tid > latestTid ) { latestTid = tid ; } tradesList . add ( adaptTrade ( anxTrade ) ) ; } return new Trades ( tradesList , latestTid , TradeSortType . SortByID ) ; }
Adapts ANXTrade's to a Trades Object

@param anxTrades
@return