use of org.knowm.xchange.latoken.dto.trade.LatokenUserTrade in project XChange by knowm.
the class LatokenAdapters method adaptUserTrades.
public static UserTrades adaptUserTrades(Exchange exchange, LatokenUserTrades latokenUserTrades) {
CurrencyPair pair = adaptCurrencyPair(exchange, latokenUserTrades.getSymbol());
List<UserTrade> trades = latokenUserTrades.getTrades().stream().map(latokenUserTrade -> adaptUserTrade(latokenUserTrade, pair)).collect(Collectors.toList());
return new UserTrades(trades, Trades.TradeSortType.SortByTimestamp);
}
Aggregations