class TradeServiceImpl implements TradeService {

    @Override
    public Stream<Trade> getAccountAssetTrades(long accountId, long assetId, int from, int to) {
        final TransactionalDataSource dataSource = databaseManager.getDataSource();
        return converter.convert(
            tradeTable.getAccountAssetTrades(dataSource, accountId, assetId, 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
    );

}