Search in sources :

Example 1 with SellRequest

use of com.github.robozonky.api.remote.entities.SellRequest in project robozonky by RoboZonky.

the class Zonky method sell.

public void sell(final Investment investment) {
    LOGGER.info("Offering to sell investment in loan #{}.", investment.getLoanId());
    controlApi.execute(api -> {
        api.offer(new SellRequest(new RawInvestment(investment)));
    });
}
Also used : SellRequest(com.github.robozonky.api.remote.entities.SellRequest) RawInvestment(com.github.robozonky.api.remote.entities.RawInvestment)

Aggregations

RawInvestment (com.github.robozonky.api.remote.entities.RawInvestment)1 SellRequest (com.github.robozonky.api.remote.entities.SellRequest)1