public static List < LimitOrder > adaptOrders ( List < ANXOrder > anxOrders , String tradedCurrency , String currency , String orderType , String id ) { List < LimitOrder > limitOrders = new ArrayList <> ( ) ; for ( ANXOrder anxOrder : anxOrders ) { limitOrders . add ( adaptOrder ( anxOrder . getAmount ( ) , anxOrder . getPrice ( ) , tradedCurrency , currency , orderType , id , new Date ( anxOrder . getStamp ( ) ) ) ) ; } return limitOrders ; }
Adapts a List of ANXOrders to a List of LimitOrders