public interface Service extends ServiceBase
| Modifier and Type | Field and Description |
|---|---|
static String |
BROKER_STATUS_TOPIC
The topic on which the client receives broker status
notifications.
|
static String |
REPLY_TOPIC_PREFIX
The prefix of the topic on which the client receives server
replies.
|
static String |
REQUEST_QUEUE
The queue on which the client places orders for the server.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addReport(ClientContext inContext,
FIXMessageWrapper inReport,
BrokerID inBrokerID,
Hierarchy inHierarchy)
Adds the given report to the system data flow.
|
void |
deleteReport(ClientContext inContext,
ExecutionReportImpl inReport)
Removes the given report from the persistent report store.
|
MapWrapper<PositionKey<Currency>,BigDecimal> |
getAllCurrencyPositionsAsOf(ClientContext context,
DateWrapper date)
Returns all the open positions for currency instruments based on reports,
generated and received on or before the supplied date in UTC to the client
with the given context.
|
MapWrapper<PositionKey<Equity>,BigDecimal> |
getAllEquityPositionsAsOf(ClientContext context,
DateWrapper date)
Returns all the open positions for equity instruments based on reports,
generated and received on or before the supplied date in UTC to the client
with the given context.
|
MapWrapper<PositionKey<Future>,BigDecimal> |
getAllFuturePositionsAsOf(ClientContext inContext,
DateWrapper inDate)
Returns all the open positions for future instruments based on reports,
generated and received on or before the supplied date in UTC to the client
with the given context.
|
MapWrapper<PositionKey<Option>,BigDecimal> |
getAllOptionPositionsAsOf(ClientContext context,
DateWrapper date)
Returns the aggregate position of each option (option,account,actor)
tuple based on all reports received for each tuple on or before
the supplied date in UTC, and which are visible to the given user.
|
BrokersStatus |
getBrokersStatus(ClientContext context)
Returns the server's broker status to the client with the
given context.
|
BigDecimal |
getCurrencyPositionAsOf(ClientContext context,
DateWrapper date,
Currency currency)
Returns the position of the supplied currency instrument based on reports,
generated and received on or before the supplied date in UTC to the
client with the given context.
|
BigDecimal |
getEquityPositionAsOf(ClientContext context,
DateWrapper date,
Equity equity)
Returns the position of the supplied equity instrument based on reports,
generated and received on or before the supplied date in UTC to the
client with the given context.
|
BigDecimal |
getFuturePositionAsOf(ClientContext inContext,
DateWrapper inDate,
Future inFuture)
Returns the position of the supplied future instrument based on reports,
generated and received on or before the supplied date in UTC to the
client with the given context.
|
String |
getNextOrderID(ClientContext context)
Returns the next server order ID to the client with the given
context.
|
List<ReportBaseImpl> |
getOpenOrders(ClientContext inContext)
Gets the list of open orders visible to the current user.
|
BigDecimal |
getOptionPositionAsOf(ClientContext context,
DateWrapper date,
Option option)
Gets the current aggregate position for the option instrument based on
execution reports received on or before the supplied date in UTC, and which
are visible to the given user.
|
MapWrapper<PositionKey<Option>,BigDecimal> |
getOptionPositionsAsOf(ClientContext context,
DateWrapper date,
String... rootSymbols)
Returns the aggregate position of each option (option,account,actor)
tuple based on all reports received for each tuple on or before
the supplied date in UTC, and which are visible to the given user.
|
Collection<String> |
getOptionRoots(ClientContext context,
String inUnderlying)
Returns the collection of known option roots for the underlying symbol.
|
ReportBaseImpl[] |
getReportsSince(ClientContext context,
DateWrapper date)
Returns all the reports (execution report and order cancel
rejects) generated and received by the server since the
supplied date to the client with the given context.
|
OrderID |
getRootOrderIdFor(ClientContext inServiceContext,
OrderID inOrderID)
Gets the order ID of the root order in the given order chain.
|
String |
getUnderlying(ClientContext context,
String optionRoot)
Returns the underlying symbol for the supplied option root, if
a mapping is found for it.
|
String |
getUserData(ClientContext inContext)
Gets the user data associated with the current user.
|
UserInfo |
getUserInfo(ClientContext context,
UserID id)
Returns the information of the user with the given ID to the
client with the given context.
|
void |
heartbeat(ClientContext context)
Sends a heartbeat to the server.
|
Instrument |
resolveSymbol(ClientContext inContext,
String inSymbol)
Resolves the given symbol to an instrument.
|
void |
setUserData(ClientContext inContext,
String inData)
Sets the user data associated with the current user.
|
static final String REPLY_TOPIC_PREFIX
static final String BROKER_STATUS_TOPIC
static final String REQUEST_QUEUE
BrokersStatus getBrokersStatus(ClientContext context) throws RemoteException
context - The context.RemoteException - Thrown if the operation cannot be
completed.UserInfo getUserInfo(ClientContext context, UserID id) throws RemoteException
context - The context.id - The user ID.RemoteException - Thrown if the operation cannot be
completed.ReportBaseImpl[] getReportsSince(ClientContext context, DateWrapper date) throws RemoteException
context - The context.date - The date, in UTC.RemoteException - Thrown if the operation cannot be
completed.BigDecimal getEquityPositionAsOf(ClientContext context, DateWrapper date, Equity equity) throws RemoteException
context - The context.date - The date, in UTC.equity - The equity instrument.RemoteException - Thrown if the operation cannot be
completed.MapWrapper<PositionKey<Equity>,BigDecimal> getAllEquityPositionsAsOf(ClientContext context, DateWrapper date) throws RemoteException
context - The context.date - The date, in UTC.RemoteException - Thrown if the operation cannot be
completed.BigDecimal getCurrencyPositionAsOf(ClientContext context, DateWrapper date, Currency currency) throws RemoteException
context - The context.date - The date, in UTC.currency - The currency instrument.RemoteException - Thrown if the operation cannot be
completed.MapWrapper<PositionKey<Currency>,BigDecimal> getAllCurrencyPositionsAsOf(ClientContext context, DateWrapper date) throws RemoteException
context - The context.date - The date, in UTC.RemoteException - Thrown if the operation cannot be
completed.BigDecimal getFuturePositionAsOf(ClientContext inContext, DateWrapper inDate, Future inFuture) throws RemoteException
inContext - The context.inDate - The date, in UTC.inFuture - The equity instrument.RemoteException - Thrown if the operation cannot be
completed.MapWrapper<PositionKey<Future>,BigDecimal> getAllFuturePositionsAsOf(ClientContext inContext, DateWrapper inDate) throws RemoteException
inContext - The context.inDate - The date, in UTC.RemoteException - Thrown if the operation cannot be
completed.BigDecimal getOptionPositionAsOf(ClientContext context, DateWrapper date, Option option) throws RemoteException
Buy trades result in positive positions. All other kinds of trades result in negative positions.
context - The context.date - The date, in UTC.option - The option instrument.RemoteException - Thrown if the operation cannot be completed.MapWrapper<PositionKey<Option>,BigDecimal> getAllOptionPositionsAsOf(ClientContext context, DateWrapper date) throws RemoteException
Buy trades result in positive positions. All other kinds of trades result in negative positions.
context - The context.date - The date, in UTC.RemoteException - Thrown if the operation cannot be completed.MapWrapper<PositionKey<Option>,BigDecimal> getOptionPositionsAsOf(ClientContext context, DateWrapper date, String... rootSymbols) throws RemoteException
Buy trades result in positive positions. All other kinds of trades result in negative positions.
context - The context.date - The date, in UTC.rootSymbols - The option root symbols.RemoteException - Thrown if the operation cannot be completed.String getNextOrderID(ClientContext context) throws RemoteException
context - The context.RemoteException - Thrown if the operation cannot be
completed.String getUnderlying(ClientContext context, String optionRoot) throws RemoteException
context - The context.optionRoot - The option root symbol.RemoteException - Thrown if the operation cannot be
completed.Collection<String> getOptionRoots(ClientContext context, String inUnderlying) throws RemoteException
context - The context.inUnderlying - The underlying symbol.RemoteException - Thrown if the operation cannot be
completed.void heartbeat(ClientContext context) throws RemoteException
context - The context.RemoteException - Thrown if the operation cannot be
completed.String getUserData(ClientContext inContext) throws RemoteException
inContext - a ClientContent valueString valueRemoteException - if the operation cannot be completedvoid setUserData(ClientContext inContext, String inData) throws RemoteException
inContext - a ClientContent valueinData - a String valueRemoteException - if the operation cannot be completedvoid addReport(ClientContext inContext, FIXMessageWrapper inReport, BrokerID inBrokerID, Hierarchy inHierarchy) throws RemoteException
Reports added this way will be added to the system data bus. Reports will be persisted and become part of the system record. All clients will receive this report.
This will affect reported positions
.inContext - a ClientContent valueinReport - a FIXMessageWrapper valueinBrokerID - a BrokerID valueinHierarchy - a Hierarchy valueRemoteException - if an error occursvoid deleteReport(ClientContext inContext, ExecutionReportImpl inReport) throws RemoteException
Reports removed this way will not be added to the system data bus and no clients will receive this report.
This will affect reported positions
.inContext - a ClientContent valueinReport - an ExecutionReportImpl valueRemoteException - if an error occursInstrument resolveSymbol(ClientContext inContext, String inSymbol) throws RemoteException
inContext - a ClientContext valueinSymbol - a String valueInstrument valueRemoteException - if an error occursList<ReportBaseImpl> getOpenOrders(ClientContext inContext) throws RemoteException
inContext - a ClientContext valueList<ReportBaseImpl> valueRemoteException - if an error occursOrderID getRootOrderIdFor(ClientContext inServiceContext, OrderID inOrderID) throws RemoteException
inServiceContext - a ClientContext valueinOrderID - an OrderID valueOrderID valueRemoteException - if an error occursCopyright © 2015. All Rights Reserved.