class BidOrderServiceImpl implements OrderService<BidOrder, ColoredCoinsBidOrderPlacement> {

    @Override
    public Stream<BidOrder> getOrdersByAccountAsset(final long accountId, final long assetId, int from, int to) {
        return converter.convert(
            bidOrderTable.getManyBy(
                new DbClause.LongClause("account_id", accountId)
                    .and(new DbClause.LongClause("asset_id", assetId)), from, to
            )
        );
    }

    public  BidOrderServiceImpl(
        final DatabaseManager databaseManager,
        final BidOrderTable bidOrderTable,
        final Blockchain blockchain,
        final IteratorToStreamConverter<BidOrder> converter
    );
    @Inject public  BidOrderServiceImpl(
        final DatabaseManager databaseManager,
        final BidOrderTable bidOrderTable,
        final Blockchain blockchain
    );

}