class TradeServiceImpl implements TradeService {

    @Override
    public Stream<Trade> getAskOrderTrades(long askOrderId, int from, int to) {
        return converter.convert(
            tradeTable.getManyBy(
                new DbClause.LongClause("ask_order_id", askOrderId), from, to
            )
        );
    }

    public  TradeServiceImpl(
        final DatabaseManager databaseManager,
        final Blockchain blockchain,
        final TradeTable tradeTable,
        final IteratorToStreamConverter<Trade> converter
    );
    @Inject public  TradeServiceImpl(
        final DatabaseManager databaseManager,
        final Blockchain blockchain,
        final TradeTable tradeTable
    );

}