public interface IReportService
Provide access to consolidated trading activity reports:
| Method Summary | |
|---|---|
java.util.List<IReportPosition> |
getClosedPositions(long from,
long to)
Returns a list of closed positions for specified: |
java.util.List<IReportPosition> |
getOpenPositions()
Returns a list of all open positions |
void |
readClosedPositions(long from,
long to,
ILoadingReportPositionListener reportPositionListener,
LoadingProgressListener loadingProgress)
Loads closed positions from the server in the background. |
void |
readOpenPositions(ILoadingReportPositionListener reportPositionListener,
LoadingProgressListener loadingProgress)
Loads all open positions from the server in the background. |
| Method Detail |
|---|
java.util.List<IReportPosition> getOpenPositions()
throws JFException
JFException - in case of any system error
void readOpenPositions(ILoadingReportPositionListener reportPositionListener,
LoadingProgressListener loadingProgress)
throws JFException
ILoadingReportPositionListener. LoadingProgressListener is used to receive feedback about loading progress,
to cancel loading and its method LoadingProgressListener.loadingFinished(boolean, long, long, long) is called when loading
is finished or as a result of error. This method can be used for open positions loading without blocking strategy execution
reportPositionListener - receives data about requested open positionsloadingProgress - used to control loading progress
JFException - in case of any system error
java.util.List<IReportPosition> getClosedPositions(long from,
long to)
throws JFException
from - start of the time interval for which closed positions should be loadedto - end time of the time interval for which closed positions should be loaded
JFException - in case of any system error
void readClosedPositions(long from,
long to,
ILoadingReportPositionListener reportPositionListener,
LoadingProgressListener loadingProgress)
throws JFException
ILoadingReportPositionListener.
LoadingProgressListener is used to receive feedback about loading progress, to cancel loading and its method.
LoadingProgressListener.loadingFinished(boolean, long, long, long) is called when loading is finished or as a result of error.
This method can be used for positions loading without blocking strategy execution
from - start of the time interval for which closed positions should be loadedto - end time of the time interval for which closed positions should be loadedreportPositionListener - receives data about requested closed positionsloadingProgress - used to control loading progress
JFException - in case of any system error