|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ReportHistoryServices
Provides services to save and query reports.
| Method Summary | |
|---|---|
Map<PositionKey<Equity>,BigDecimal> |
getAllEquityPositionsAsOf(SimpleUser inUser,
Date inDate)
Returns the aggregate position of each (equity,account,actor) tuple based on all reports received for each tuple on or before the supplied date, and which are visible to the given user. |
Map<PositionKey<Future>,BigDecimal> |
getAllFuturePositionsAsOf(SimpleUser inUser,
Date inDate)
Returns the aggregate position of each future (future,account,actor) tuple based on all reports received for each future instrument on or before the supplied date, and which are visible to the given user. |
Map<PositionKey<Option>,BigDecimal> |
getAllOptionPositionsAsOf(SimpleUser inUser,
Date inDate)
Returns the aggregate position of each option (option,account,actor) tuple based on all reports received for each option instrument on or before the supplied date, and which are visible to the given user. |
BigDecimal |
getEquityPositionAsOf(SimpleUser inUser,
Date inDate,
Equity inEquity)
Returns the position of the equity based on all reports received for it before or on the supplied date, and which are visible to the given user. |
BigDecimal |
getFuturePositionAsOf(SimpleUser inUser,
Date inDate,
Future inFuture)
Gets the current aggregate position for the future instrument based on execution reports received before or on the supplied date, and which are visible to the given user. |
BigDecimal |
getOptionPositionAsOf(SimpleUser inUser,
Date inDate,
Option inOption)
Gets the current aggregate position for the option instrument based on execution reports received before or on the supplied date, and which are visible to the given user. |
Map<PositionKey<Option>,BigDecimal> |
getOptionPositionsAsOf(SimpleUser inUser,
Date inDate,
String... inSymbols)
Returns the aggregate position of each option (option,account,actor) tuple based on all reports received for each option instrument on or before the supplied date, and which are visible to the given user. |
Principals |
getPrincipals(OrderID orderID)
Returns the principals associated with the report with given order ID. |
ReportBaseImpl[] |
getReportsSince(SimpleUser inUser,
Date inDate)
Returns all the reports received after the supplied date-time value, and which are visible to the given user. |
void |
init(IDFactory idFactory,
JmsManager jmsManager,
ReportSavedListener reportSavedListener)
Initializes the receiver with the given system resources. |
void |
save(ReportBase report)
Saves the supplied report to the database. |
| Method Detail |
|---|
void init(IDFactory idFactory,
JmsManager jmsManager,
ReportSavedListener reportSavedListener)
throws ReportPersistenceException
idFactory - The ID factory to be used for report ID
generation.jmsManager - The JMS manager used for asychronous
persistence of reports. Null may be acceptable to certain
implementations.reportSavedListener - The listener notified after a report
has been saved (successfully or not). It may be null if no
notifications are needed.
ReportPersistenceException - Thrown if initialization
cannot complete.
ReportBaseImpl[] getReportsSince(SimpleUser inUser,
Date inDate)
throws PersistenceException,
ReportPersistenceException
inUser - the user making the query. Cannot be null.inDate - the date-time value. Cannot be null.
PersistenceException - if there were persistence errors
fetching the reports.
ReportPersistenceException - if the data retrieved had
unexpected errors.
BigDecimal getEquityPositionAsOf(SimpleUser inUser,
Date inDate,
Equity inEquity)
throws PersistenceException
inUser - the user making the query. Cannot be null.inDate - the date to compare with all the reports. Only the reports
that were received prior to or on this date will be used in this calculation.
Cannot be null.inEquity - the equity whose position is desired. Cannot be null.
PersistenceException - if there were errors retrieving the equity
position
Map<PositionKey<Equity>,BigDecimal> getAllEquityPositionsAsOf(SimpleUser inUser,
Date inDate)
throws PersistenceException
inUser - the user making the query. Cannot be null.inDate - the date to compare with all the reports. Only
the reports that were received on or prior to this date will be
used in this calculation. Cannot be null.
PersistenceException - if there were errors retrieving the
position map.
BigDecimal getOptionPositionAsOf(SimpleUser inUser,
Date inDate,
Option inOption)
throws PersistenceException
Buy trades result in positive positions. All other kinds of trades result in negative positions.
inUser - the user making the query. Cannot be null.inDate - the time. execution reports with sending time values less
than or equal to this time are included in this calculation.inOption - The option instrument
PersistenceException - if there were errors retrieving the
position.
Map<PositionKey<Option>,BigDecimal> getAllOptionPositionsAsOf(SimpleUser inUser,
Date inDate)
throws PersistenceException
Buy trades result in positive positions. All other kinds of trades result in negative positions.
inUser - the user making the query. Cannot be null.inDate - the date to compare with all the reports. Only
the reports that were received on or prior to this date will be
used in this calculation. Cannot be null.
PersistenceException - if there were errors retrieving the
position map.
BigDecimal getFuturePositionAsOf(SimpleUser inUser,
Date inDate,
Future inFuture)
throws PersistenceException
Buy trades result in positive positions. All other kinds of trades result in negative positions.
inUser - the user making the query. Cannot be null.inDate - the time. execution reports with sending time values less
than or equal to this time are included in this calculation.inFuture - The future instrument
PersistenceException - if there were errors retrieving the
position.
Map<PositionKey<Future>,BigDecimal> getAllFuturePositionsAsOf(SimpleUser inUser,
Date inDate)
throws PersistenceException
Buy trades result in positive positions. All other kinds of trades result in negative positions.
inUser - the user making the query. Cannot be null.inDate - the date to compare with all the reports. Only
the reports that were received on or prior to this date will be
used in this calculation. Cannot be null.
PersistenceException - if there were errors retrieving the
position map.
Map<PositionKey<Option>,BigDecimal> getOptionPositionsAsOf(SimpleUser inUser,
Date inDate,
String... inSymbols)
throws PersistenceException
Buy trades result in positive positions. All other kinds of trades result in negative positions.
inUser - the user making the query. Cannot be null.inDate - the date to compare with all the reports. Only
the reports that were received on or prior to this date will be
used in this calculation. Cannot be null.inSymbols - the list of option roots.
PersistenceException - if there were errors retrieving the
position map.
void save(ReportBase report)
throws PersistenceException
report - the report to be saved. Cannot be null.
PersistenceException - if there
were errors saving the report.
Principals getPrincipals(OrderID orderID)
throws PersistenceException
orderID - The order ID.
Principals.UNKNOWN is returned, and no
exception is thrown.
PersistenceException - Thrown if there were errors
accessing the report.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||