public interface SubscriptionService
Modifier and Type | Method and Description |
---|---|
void |
initGenericEventSubscriptions()
Initializes generic event subscriptions
|
void |
initMarketDataEventSubscriptions()
Initializes market data subscriptions
|
void |
subscribeGenericEvents(java.util.Set<java.lang.Class<?>> classes)
Subscribes Generic Events of the specified class.
|
void |
subscribeMarketDataEvent(java.lang.String strategyName,
long securityId)
Subscribes
MarketDataEvents of a
Security for the defined Strategy. |
void |
subscribeMarketDataEvent(java.lang.String strategyName,
long securityId,
java.lang.String adapterType)
Subscribes
MarketDataEvents of a
Security for the defined Strategy with the specified adapter type. |
void |
subscribeMarketDataEvent(java.lang.String strategyName,
long securityId,
java.lang.String adapterType,
boolean subscribeToConversionCurrenciesIfNecessary)
Other subscribeMarketDataEvent methods run this method with subscribeToConversionCurrenciesIfNecessary=true.
|
void |
unsubscribeMarketDataEvent(java.lang.String strategyName,
long securityId)
Unsubscribes
MarketDataEvents of a
Security for the defined Strategy. |
void |
unsubscribeMarketDataEvent(java.lang.String strategyName,
long securityId,
java.lang.String adapterType)
Unsubscribes
MarketDataEvents of a
Security for the defined Strategy with the specified adapter type |
void subscribeMarketDataEvent(java.lang.String strategyName, long securityId) throws UnknownAdapterException
MarketDataEvents
of a
Security for the defined Strategy.UnknownAdapterException
- if there are multiple active adaptersvoid subscribeMarketDataEvent(java.lang.String strategyName, long securityId, java.lang.String adapterType, boolean subscribeToConversionCurrenciesIfNecessary)
void subscribeMarketDataEvent(java.lang.String strategyName, long securityId, java.lang.String adapterType)
MarketDataEvents
of a
Security for the defined Strategy with the specified adapter type.void unsubscribeMarketDataEvent(java.lang.String strategyName, long securityId) throws UnknownAdapterException
MarketDataEvents
of a
Security for the defined Strategy. Requires a single active market adapter.UnknownAdapterException
- if there are multiple active adaptersvoid unsubscribeMarketDataEvent(java.lang.String strategyName, long securityId, java.lang.String adapterType)
MarketDataEvents
of a
Security for the defined Strategy with the specified adapter typevoid initMarketDataEventSubscriptions()
void subscribeGenericEvents(java.util.Set<java.lang.Class<?>> classes)
void initGenericEventSubscriptions()