use of network.bisq.api.model.TradeList in project bisq-api by mrosseel.
the class TradeResource method find.
@ApiOperation("List trades")
@GET
public TradeList find() {
final TradeList tradeList = new TradeList();
tradeList.trades = bisqProxy.getTradeList().stream().map(TradeDetails::new).collect(toList());
tradeList.total = tradeList.trades.size();
return tradeList;
}
Aggregations