Search in sources :

Example 1 with TradeDetails

use of network.bisq.api.model.TradeDetails 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;
}
Also used : TradeDetails(network.bisq.api.model.TradeDetails) TradeList(network.bisq.api.model.TradeList) ApiOperation(io.swagger.annotations.ApiOperation)

Aggregations

ApiOperation (io.swagger.annotations.ApiOperation)1 TradeDetails (network.bisq.api.model.TradeDetails)1 TradeList (network.bisq.api.model.TradeList)1