public class LiveOrderHistoryManager extends OrderHistoryManager implements Lifecycle
OrderHistoryManager implementation.
Instantiate this class with an origin date. The origin date establishes how far back to look for order history. Open orders are always included in the history, regardless of the origin date.
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 |
|---|
LiveOrderHistoryManager(Date inReportHistoryOrigin)
Create a new LiveOrderHistoryManager instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected Client |
getClient()
Get the client value.
|
Map<OrderID,ExecutionReport> |
getOpenOrders()
Gets the open orders.
|
Date |
getReportHistoryOrigin()
Gets the report history origin date used by this order history manager.
|
boolean |
isRunning() |
void |
start() |
void |
stop() |
String |
toString() |
add, clear, clear, display, getLatestReportFor, getOrderChain, getOrderIds, getReportHistoryFor, getRootOrderIdForpublic LiveOrderHistoryManager(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 Map<OrderID,ExecutionReport> getOpenOrders()
The collection returned by this operation will reflect changes to the underlying order history.
The LiveOrderHistoryManager object must be started before this operation
may be successfully invoked.
getOpenOrders in class OrderHistoryManagerMap<OrderID,ExecutionReport> valueIllegalStateException - if the object has not startedpublic Date getReportHistoryOrigin()
Date valuepublic String toString()
toString in class OrderHistoryManagerprotected Client getClient()
Client valueCopyright © 2015. All Rights Reserved.