com.dukascopy.api.IHistory.readBars(Instrument instrument, Period period, OfferSide side, long from, long to, LoadingDataListener barListener, LoadingProgressListener loadingProgress)
How can I cancel the job before it completes - say it was taking too long?
Hi, Use a LoadingProgressListener, which have the function stopJob. This method will be called to check if the job we are doing is still actual for the caller. If method returns true than job will be stopped.