|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.epam.cmemdp.marketdata.impl.MarketDataAppImpl
public class MarketDataAppImpl
Constructor Summary | |
---|---|
MarketDataAppImpl()
|
Method Summary | |
---|---|
java.util.Map<java.lang.Long,Configuration.Subscription> |
getAllSubscriptions()
Get all Security Subscriptions, per Security Id |
long |
getQuoteRequestQty(java.lang.Long securityId)
Get last Quote Request instance |
SecurityDefinition |
getSecurityDefinition(java.lang.Long securityId)
Get a Security Definition from internal API registry |
MarketState |
getSecurityStatus(java.lang.Long securityId)
Get current Security Status |
TradeStatistic |
getStatistics(java.lang.Long securityId)
Get a Trade Statistics instance |
void |
init(Configuration configuration)
Initialize Market Data API using a given Configuration instance |
void |
start()
Activate and connect to CME |
void |
startAdhoc(Configuration.Subscription subscription)
Start an adhoc Subscription |
void |
stop()
Shutdown all processes. |
void |
stop(java.lang.Long securityId)
Stop a given Security by Id |
void |
stopByDesc(java.lang.String desc)
Stop a given Security by Security Description |
void |
stopBySecGroup(java.lang.String secGroup)
Stop a given Security by Security Group Name |
void |
stopBySymbol(java.lang.String symbol)
Stop a given Security by Security Symbol |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MarketDataAppImpl()
Method Detail |
---|
public void init(Configuration configuration) throws ConfigurationException
MarketDataApp
init
in interface MarketDataApp
configuration
- a Configuration instance
ConfigurationException
public void start()
MarketDataApp
start
in interface MarketDataApp
public void stop(java.lang.Long securityId)
MarketDataApp
stop
in interface MarketDataApp
securityId
- Security Idpublic void stopByDesc(java.lang.String desc)
MarketDataApp
stopByDesc
in interface MarketDataApp
desc
- Security Descriptionpublic void stopBySymbol(java.lang.String symbol)
MarketDataApp
stopBySymbol
in interface MarketDataApp
symbol
- Security Symbolpublic void stopBySecGroup(java.lang.String secGroup)
MarketDataApp
stopBySecGroup
in interface MarketDataApp
secGroup
- Security Group Namepublic void stop()
MarketDataApp
stop
in interface MarketDataApp
public void startAdhoc(Configuration.Subscription subscription) throws ConfigurationException
MarketDataApp
startAdhoc
in interface MarketDataApp
subscription
- a new Subscription instance
ConfigurationException
public java.util.Map<java.lang.Long,Configuration.Subscription> getAllSubscriptions()
MarketDataApp
getAllSubscriptions
in interface MarketDataApp
public SecurityDefinition getSecurityDefinition(java.lang.Long securityId)
MarketDataApp
getSecurityDefinition
in interface MarketDataApp
securityId
- a given Security Id
public TradeStatistic getStatistics(java.lang.Long securityId)
MarketDataApp
getStatistics
in interface MarketDataApp
securityId
- a given Security Id
public MarketState getSecurityStatus(java.lang.Long securityId)
MarketDataApp
getSecurityStatus
in interface MarketDataApp
securityId
- a given Security Id
public long getQuoteRequestQty(java.lang.Long securityId)
MarketDataApp
getQuoteRequestQty
in interface MarketDataApp
securityId
- a given Security Id
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |