use of com.github.robozonky.app.configuration.daemon.StrategyProvider in project robozonky by RoboZonky.
the class DaemonOperatingMode method getInvestmentMode.
@Override
protected Optional<InvestmentMode> getInvestmentMode(final CommandLine cli, final Authenticated auth, final Investor.Builder builder) {
final StrategyProvider sp = StrategyProvider.createFor(strategy.getStrategyLocation());
final PortfolioUpdater u = PortfolioUpdater.create(shutdownCall, auth, sp, builder.isDryRun());
final InvestmentMode m = new DaemonInvestmentMode(t -> {
}, auth, u, builder, sp, marketplace.getPrimaryMarketplaceCheckDelay(), marketplace.getSecondaryMarketplaceCheckDelay());
return Optional.of(m);
}
Aggregations