public interface Service
extends org.marketcetera.util.ws.stateful.ServiceBase
| Modifier and Type | Field and Description |
|---|---|
static String |
BROKER_STATUS_TOPIC
The topic on which the client receives broker status
notifications.
|
static String |
MARKET_DATA_REQUEST_TOPIC
the queue on which the client receives server market data requests
|
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(org.marketcetera.util.ws.stateful.ClientContext inContext,
FIXMessageWrapper inReport,
BrokerID inBrokerID,
Hierarchy inHierarchy)
Adds the given report to the system data flow.
|
void |
deleteReport(org.marketcetera.util.ws.stateful.ClientContext inContext,
ExecutionReportImpl inReport)
Removes the given report from the persistent report store.
|
org.marketcetera.util.ws.wrappers.MapWrapper<PositionKey<Currency>,BigDecimal> |
getAllCurrencyPositionsAsOf(org.marketcetera.util.ws.stateful.ClientContext context,
org.marketcetera.util.ws.wrappers.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.
|
org.marketcetera.util.ws.wrappers.MapWrapper<PositionKey<Equity>,BigDecimal> |
getAllEquityPositionsAsOf(org.marketcetera.util.ws.stateful.ClientContext context,
org.marketcetera.util.ws.wrappers.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.
|
org.marketcetera.util.ws.wrappers.MapWrapper<PositionKey<Future>,BigDecimal> |
getAllFuturePositionsAsOf(org.marketcetera.util.ws.stateful.ClientContext inContext,
org.marketcetera.util.ws.wrappers.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.
|
org.marketcetera.util.ws.wrappers.MapWrapper<PositionKey<Option>,BigDecimal> |
getAllOptionPositionsAsOf(org.marketcetera.util.ws.stateful.ClientContext context,
org.marketcetera.util.ws.wrappers.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(org.marketcetera.util.ws.stateful.ClientContext context)
Returns the server's broker status to the client with the
given context.
|
BigDecimal |
getCurrencyPositionAsOf(org.marketcetera.util.ws.stateful.ClientContext context,
org.marketcetera.util.ws.wrappers.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(org.marketcetera.util.ws.stateful.ClientContext context,
org.marketcetera.util.ws.wrappers.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(org.marketcetera.util.ws.stateful.ClientContext inContext,
org.marketcetera.util.ws.wrappers.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(org.marketcetera.util.ws.stateful.ClientContext context)
Returns the next server order ID to the client with the given
context.
|
List<ReportBaseImpl> |
getOpenOrders(org.marketcetera.util.ws.stateful.ClientContext inContext)
Gets the list of open orders visible to the current user.
|
BigDecimal |
getOptionPositionAsOf(org.marketcetera.util.ws.stateful.ClientContext context,
org.marketcetera.util.ws.wrappers.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.
|
org.marketcetera.util.ws.wrappers.MapWrapper<PositionKey<Option>,BigDecimal> |
getOptionPositionsAsOf(org.marketcetera.util.ws.stateful.ClientContext context,
org.marketcetera.util.ws.wrappers.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(org.marketcetera.util.ws.stateful.ClientContext context,
String inUnderlying)
Returns the collection of known option roots for the underlying symbol.
|
ReportBaseImpl[] |
getReportsSince(org.marketcetera.util.ws.stateful.ClientContext context,
org.marketcetera.util.ws.wrappers.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(org.marketcetera.util.ws.stateful.ClientContext inServiceContext,
OrderID inOrderID)
Gets the order ID of the root order in the given order chain.
|
String |
getUnderlying(org.marketcetera.util.ws.stateful.ClientContext context,
String optionRoot)
Returns the underlying symbol for the supplied option root, if
a mapping is found for it.
|
String |
getUserData(org.marketcetera.util.ws.stateful.ClientContext inContext)
Gets the user data associated with the current user.
|
UserInfo |
getUserInfo(org.marketcetera.util.ws.stateful.ClientContext context,
UserID id)
Returns the information of the user with the given ID to the
client with the given context.
|
void |
heartbeat(org.marketcetera.util.ws.stateful.ClientContext context)
Sends a heartbeat to the server.
|
Instrument |
resolveSymbol(org.marketcetera.util.ws.stateful.ClientContext inContext,
String inSymbol)
Resolves the given symbol to an instrument.
|
void |
setUserData(org.marketcetera.util.ws.stateful.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
static final String MARKET_DATA_REQUEST_TOPIC
BrokersStatus getBrokersStatus(org.marketcetera.util.ws.stateful.ClientContext context) throws org.marketcetera.util.ws.wrappers.RemoteException
context - The context.org.marketcetera.util.ws.wrappers.RemoteException - Thrown if the operation cannot be
completed.UserInfo getUserInfo(org.marketcetera.util.ws.stateful.ClientContext context, UserID id) throws org.marketcetera.util.ws.wrappers.RemoteException
context - The context.id - The user ID.org.marketcetera.util.ws.wrappers.RemoteException - Thrown if the operation cannot be
completed.ReportBaseImpl[] getReportsSince(org.marketcetera.util.ws.stateful.ClientContext context, org.marketcetera.util.ws.wrappers.DateWrapper date) throws org.marketcetera.util.ws.wrappers.RemoteException
context - The context.date - The date, in UTC.org.marketcetera.util.ws.wrappers.RemoteException - Thrown if the operation cannot be
completed.BigDecimal getEquityPositionAsOf(org.marketcetera.util.ws.stateful.ClientContext context, org.marketcetera.util.ws.wrappers.DateWrapper date, Equity equity) throws org.marketcetera.util.ws.wrappers.RemoteException
context - The context.date - The date, in UTC.equity - The equity instrument.org.marketcetera.util.ws.wrappers.RemoteException - Thrown if the operation cannot be
completed.org.marketcetera.util.ws.wrappers.MapWrapper<PositionKey<Equity>,BigDecimal> getAllEquityPositionsAsOf(org.marketcetera.util.ws.stateful.ClientContext context, org.marketcetera.util.ws.wrappers.DateWrapper date) throws org.marketcetera.util.ws.wrappers.RemoteException
context - The context.date - The date, in UTC.org.marketcetera.util.ws.wrappers.RemoteException - Thrown if the operation cannot be
completed.BigDecimal getCurrencyPositionAsOf(org.marketcetera.util.ws.stateful.ClientContext context, org.marketcetera.util.ws.wrappers.DateWrapper date, Currency currency) throws org.marketcetera.util.ws.wrappers.RemoteException
context - The context.date - The date, in UTC.currency - The currency instrument.org.marketcetera.util.ws.wrappers.RemoteException - Thrown if the operation cannot be
completed.org.marketcetera.util.ws.wrappers.MapWrapper<PositionKey<Currency>,BigDecimal> getAllCurrencyPositionsAsOf(org.marketcetera.util.ws.stateful.ClientContext context, org.marketcetera.util.ws.wrappers.DateWrapper date) throws org.marketcetera.util.ws.wrappers.RemoteException
context - The context.date - The date, in UTC.org.marketcetera.util.ws.wrappers.RemoteException - Thrown if the operation cannot be
completed.BigDecimal getFuturePositionAsOf(org.marketcetera.util.ws.stateful.ClientContext inContext, org.marketcetera.util.ws.wrappers.DateWrapper inDate, Future inFuture) throws org.marketcetera.util.ws.wrappers.RemoteException
inContext - The context.inDate - The date, in UTC.inFuture - The equity instrument.org.marketcetera.util.ws.wrappers.RemoteException - Thrown if the operation cannot be
completed.org.marketcetera.util.ws.wrappers.MapWrapper<PositionKey<Future>,BigDecimal> getAllFuturePositionsAsOf(org.marketcetera.util.ws.stateful.ClientContext inContext, org.marketcetera.util.ws.wrappers.DateWrapper inDate) throws org.marketcetera.util.ws.wrappers.RemoteException
inContext - The context.inDate - The date, in UTC.org.marketcetera.util.ws.wrappers.RemoteException - Thrown if the operation cannot be
completed.BigDecimal getOptionPositionAsOf(org.marketcetera.util.ws.stateful.ClientContext context, org.marketcetera.util.ws.wrappers.DateWrapper date, Option option) throws org.marketcetera.util.ws.wrappers.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.org.marketcetera.util.ws.wrappers.RemoteException - Thrown if the operation cannot be completed.org.marketcetera.util.ws.wrappers.MapWrapper<PositionKey<Option>,BigDecimal> getAllOptionPositionsAsOf(org.marketcetera.util.ws.stateful.ClientContext context, org.marketcetera.util.ws.wrappers.DateWrapper date) throws org.marketcetera.util.ws.wrappers.RemoteException
Buy trades result in positive positions. All other kinds of trades result in negative positions.
context - The context.date - The date, in UTC.org.marketcetera.util.ws.wrappers.RemoteException - Thrown if the operation cannot be completed.org.marketcetera.util.ws.wrappers.MapWrapper<PositionKey<Option>,BigDecimal> getOptionPositionsAsOf(org.marketcetera.util.ws.stateful.ClientContext context, org.marketcetera.util.ws.wrappers.DateWrapper date, String... rootSymbols) throws org.marketcetera.util.ws.wrappers.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.org.marketcetera.util.ws.wrappers.RemoteException - Thrown if the operation cannot be completed.String getNextOrderID(org.marketcetera.util.ws.stateful.ClientContext context) throws org.marketcetera.util.ws.wrappers.RemoteException
context - The context.org.marketcetera.util.ws.wrappers.RemoteException - Thrown if the operation cannot be
completed.String getUnderlying(org.marketcetera.util.ws.stateful.ClientContext context, String optionRoot) throws org.marketcetera.util.ws.wrappers.RemoteException
context - The context.optionRoot - The option root symbol.org.marketcetera.util.ws.wrappers.RemoteException - Thrown if the operation cannot be
completed.Collection<String> getOptionRoots(org.marketcetera.util.ws.stateful.ClientContext context, String inUnderlying) throws org.marketcetera.util.ws.wrappers.RemoteException
context - The context.inUnderlying - The underlying symbol.org.marketcetera.util.ws.wrappers.RemoteException - Thrown if the operation cannot be
completed.void heartbeat(org.marketcetera.util.ws.stateful.ClientContext context)
throws org.marketcetera.util.ws.wrappers.RemoteException
context - The context.org.marketcetera.util.ws.wrappers.RemoteException - Thrown if the operation cannot be
completed.String getUserData(org.marketcetera.util.ws.stateful.ClientContext inContext) throws org.marketcetera.util.ws.wrappers.RemoteException
inContext - a ClientContent valueString valueorg.marketcetera.util.ws.wrappers.RemoteException - if the operation cannot be completedvoid setUserData(org.marketcetera.util.ws.stateful.ClientContext inContext,
String inData)
throws org.marketcetera.util.ws.wrappers.RemoteException
inContext - a ClientContent valueinData - a String valueorg.marketcetera.util.ws.wrappers.RemoteException - if the operation cannot be completedvoid addReport(org.marketcetera.util.ws.stateful.ClientContext inContext,
FIXMessageWrapper inReport,
BrokerID inBrokerID,
Hierarchy inHierarchy)
throws org.marketcetera.util.ws.wrappers.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 valueorg.marketcetera.util.ws.wrappers.RemoteException - if an error occursvoid deleteReport(org.marketcetera.util.ws.stateful.ClientContext inContext,
ExecutionReportImpl inReport)
throws org.marketcetera.util.ws.wrappers.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 valueorg.marketcetera.util.ws.wrappers.RemoteException - if an error occursInstrument resolveSymbol(org.marketcetera.util.ws.stateful.ClientContext inContext, String inSymbol) throws org.marketcetera.util.ws.wrappers.RemoteException
inContext - a ClientContext valueinSymbol - a String valueInstrument valueorg.marketcetera.util.ws.wrappers.RemoteException - if an error occursList<ReportBaseImpl> getOpenOrders(org.marketcetera.util.ws.stateful.ClientContext inContext) throws org.marketcetera.util.ws.wrappers.RemoteException
inContext - a ClientContext valueList<ReportBaseImpl> valueorg.marketcetera.util.ws.wrappers.RemoteException - if an error occursOrderID getRootOrderIdFor(org.marketcetera.util.ws.stateful.ClientContext inServiceContext, OrderID inOrderID) throws org.marketcetera.util.ws.wrappers.RemoteException
inServiceContext - a ClientContext valueinOrderID - an OrderID valueOrderID valueorg.marketcetera.util.ws.wrappers.RemoteException - if an error occursCopyright © 2019. All rights reserved.