public class AutoOrderHistoryManager extends LiveOrderHistoryManager implements ReportListener
OrderHistoryManager implementation.
Instantiate this class with an origin date. The origin date establishes how far back to look for order history.
This class will receive new reports on its own - it is not necessary nor is it permitted to manually
add reports.
Note that there are significant performance and resource implications when using this class. Depending on historical order volume, this class may be required to process thousands or millions of reports. There are two ramifications of this:
It may take a significant amount of time to start this object as it must process historical
order history. Callers may choose to make this operation asynchronous. The object will report that it
is running when the processing is complete.
| Constructor and Description |
|---|
AutoOrderHistoryManager(Date inReportHistoryOrigin)
Create a new AutoOrderHistoryManager instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(ReportBase inReport) |
void |
receiveCancelReject(OrderCancelReject inReport)
Invoked to supply an order cancel reject report instance to the report
listener.
|
void |
receiveExecutionReport(ExecutionReport inReport)
Invoked to supply an execution report instance to the report listener.
|
void |
start() |
void |
stop() |
getClient, getOpenOrders, getReportHistoryOrigin, isRunning, toStringclear, clear, display, getLatestReportFor, getOrderChain, getOrderIds, getReportHistoryFor, getRootOrderIdForpublic AutoOrderHistoryManager(Date inReportHistoryOrigin) throws ClientInitException
inReportHistoryOrigin - a Date value indicating the point from which to gather order history or nullClientInitException - if a connection to the Client cannot be madepublic void add(ReportBase inReport)
add in class OrderHistoryManagerpublic void receiveExecutionReport(ExecutionReport inReport)
ReportListenerreceiveExecutionReport in interface ReportListenerinReport - The received execution report.public void receiveCancelReject(OrderCancelReject inReport)
ReportListenerreceiveCancelReject in interface ReportListenerinReport - The received order cancel rejection report.public void start()
start in interface Lifecyclestart in class LiveOrderHistoryManagerpublic void stop()
stop in interface Lifecyclestop in class LiveOrderHistoryManagerCopyright © 2015. All Rights Reserved.