io.fair_acc.sample.financial.service.TickOhlcvDataProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of samples Show documentation
Show all versions of samples Show documentation
Small sample applications to showcase the features of the chart-fx library.
The newest version!
package io.fair_acc.sample.financial.service;
import java.io.IOException;
import io.fair_acc.sample.financial.dos.OHLCVItem;
/**
* Provides actual tick data
*/
public interface TickOhlcvDataProvider {
/**
* Every get() returns tick ohlcv item. If it is replay mode - the boundary is reached the TickDataFinishedException is thrown.
* If the realtime mode is used - never-end loop is used. The thread waits to next data.
* @return provides tick ohlcv data
* @throws TickDataFinishedException if the data are reached the boundary
* @throws IOException - the data are not reachable
*/
OHLCVItem get() throws TickDataFinishedException, IOException;
}