|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Service
The application's web services.
| Field Summary | |
|---|---|
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. |
| Method Summary | |
|---|---|
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 |
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. |
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. |
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. |
void |
setUserData(ClientContext inContext,
String inData)
Sets the user data associated with the current user. |
| Field Detail |
|---|
static final String REPLY_TOPIC_PREFIX
static final String BROKER_STATUS_TOPIC
static final String REQUEST_QUEUE
| Method Detail |
|---|
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 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 value
String value
RemoteException - if the operation cannot be completed
void setUserData(ClientContext inContext,
String inData)
throws RemoteException
inContext - a ClientContent valueinData - a String value
RemoteException - if the operation cannot be completed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||