Search in sources :

Example 1 with TradeDetails

use of io.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(io.bisq.api.model.TradeDetails) TradeList(io.bisq.api.model.TradeList) ApiOperation(io.swagger.annotations.ApiOperation)

Aggregations

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