class TradeServiceImpl implements TradeService {

    @Override
    public Stream<Trade> getAllTrades(int from, int to) {
        return converter.convert(tradeTable.getAll(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
    );

}