Search in sources :

Example 1 with StrategyProvider

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);
}
Also used : DaemonInvestmentMode(com.github.robozonky.app.configuration.daemon.DaemonInvestmentMode) StrategyProvider(com.github.robozonky.app.configuration.daemon.StrategyProvider) PortfolioUpdater(com.github.robozonky.app.configuration.daemon.PortfolioUpdater) DaemonInvestmentMode(com.github.robozonky.app.configuration.daemon.DaemonInvestmentMode)

Aggregations

DaemonInvestmentMode (com.github.robozonky.app.configuration.daemon.DaemonInvestmentMode)1 PortfolioUpdater (com.github.robozonky.app.configuration.daemon.PortfolioUpdater)1 StrategyProvider (com.github.robozonky.app.configuration.daemon.StrategyProvider)1