com.epam.cmemdp
Interface Application

All Known Implementing Classes:
ApplicationImpl

public interface Application


Method Summary
 void resolveInstrumentBySecID(long secID, SecurityDefinitionListener listener)
          Subscribes to instrument replay by security ID
 void resolveInstrumentBySecurityDescription(java.lang.String secDesc, SecurityDefinitionListener listener)
          Subscribes to instrument replay by security description
 void resolveInstrumentBySecurityGroup(java.lang.String securityGroup, SecurityDefinitionListener listener)
          Subscribes to instrument replay by security group
 void resolveInstrumentBySymbol(java.lang.String symbol, SecurityDefinitionListener listener)
          Subscribes to instrument replay by symbol
 boolean resolveInstrumentsByChannelID(java.lang.String channelID, SecurityDefinitionListener listener)
          Subscribes to instrument replay by channel ID
 void start()
          Deprecated. 
 void stop()
          Stops application.
 void stopChannelListener(java.lang.String channelID, SecurityDefinitionListener listener)
          Unsubscribe from instrument replay by channel
 void stopSecGroupListener(java.lang.String securityGroup, SecurityDefinitionListener listener)
          Unsubscribe from instrument replay by security group
 void stopSecIDListener(long secID, SecurityDefinitionListener listener)
          Unsubscribe from instrument replay by security ID
 void stopSecurityDescriptionListener(java.lang.String secDesc, SecurityDefinitionListener listener)
          Unsubscribe from instrument replay by security description
 void stopSymbolListener(java.lang.String symbol, SecurityDefinitionListener listener)
          Unsubscribe from instrument replay by String
 void subscribe(java.lang.String symbol, InstrumentListener listener, RecoveryOptions recovery)
           
 boolean subscribeAll(InstrumentListener listener, RecoveryOptions recoveryOptions)
          Subscribes to the market data for all instruments on market
 void subscribeAll(RecoveryOptions recoveryOptions)
          Deprecated. 
 boolean subscribeByChannelID(java.lang.String channelID, InstrumentListener listener, RecoveryOptions recoveryOptions)
          Subscribes to market data for instrument by security ID and channel info
 void subscribeBySecurityDesc(java.lang.String secDesc, InstrumentListener listener, RecoveryOptions recoveryOptions)
          Subscribes to market data for instrument by security description
 boolean subscribeBySecurityID(long secID, java.lang.String secDesc, java.lang.String channelID, InstrumentListener listener, RecoveryOptions recoveryOptions)
          Subscribes to market data for instrument by security ID and channel info
 void unsubscribe(java.lang.String symbol)
           
 void unsubscribeAll()
          Unsubscribe from all instruments
 void unsubscribeByChannelID(java.lang.String channelID, InstrumentListener listener)
          Unsubscribes from market data on channel.
 void unsubscribeBySecDesc(java.lang.String secDesc)
          Unsubscribes from instrument by security description
 void unsubscribeBySecurityID(long secID)
          Unsubscribes from instrument by security ID
 

Method Detail

start

@Deprecated
void start()
Deprecated. 

Starts application.


subscribe

void subscribe(java.lang.String symbol,
               InstrumentListener listener,
               RecoveryOptions recovery)

unsubscribe

void unsubscribe(java.lang.String symbol)

subscribeBySecurityDesc

void subscribeBySecurityDesc(java.lang.String secDesc,
                             InstrumentListener listener,
                             RecoveryOptions recoveryOptions)
Subscribes to market data for instrument by security description

Parameters:
secDesc -
listener -
recoveryOptions -

unsubscribeBySecDesc

void unsubscribeBySecDesc(java.lang.String secDesc)
Unsubscribes from instrument by security description

Parameters:
secDesc -

unsubscribeBySecurityID

void unsubscribeBySecurityID(long secID)
Unsubscribes from instrument by security ID

Parameters:
secID -

subscribeBySecurityID

boolean subscribeBySecurityID(long secID,
                              java.lang.String secDesc,
                              java.lang.String channelID,
                              InstrumentListener listener,
                              RecoveryOptions recoveryOptions)
Subscribes to market data for instrument by security ID and channel info

Parameters:
secID -
secDesc -
channelID -
listener -
recoveryOptions -

subscribeByChannelID

boolean subscribeByChannelID(java.lang.String channelID,
                             InstrumentListener listener,
                             RecoveryOptions recoveryOptions)
Subscribes to market data for instrument by security ID and channel info

Parameters:
channelID -
listener -
recoveryOptions -

unsubscribeByChannelID

void unsubscribeByChannelID(java.lang.String channelID,
                            InstrumentListener listener)
Unsubscribes from market data on channel.

Parameters:
channelID -
See Also:
subscribeByChannelID(String, InstrumentListener, RecoveryOptions)

resolveInstrumentBySymbol

void resolveInstrumentBySymbol(java.lang.String symbol,
                               SecurityDefinitionListener listener)
Subscribes to instrument replay by symbol

Parameters:
symbol -
listener -

resolveInstrumentBySecurityDescription

void resolveInstrumentBySecurityDescription(java.lang.String secDesc,
                                            SecurityDefinitionListener listener)
Subscribes to instrument replay by security description

Parameters:
secDesc -
listener -

resolveInstrumentBySecID

void resolveInstrumentBySecID(long secID,
                              SecurityDefinitionListener listener)
Subscribes to instrument replay by security ID

Parameters:
secID -
listener -

resolveInstrumentBySecurityGroup

void resolveInstrumentBySecurityGroup(java.lang.String securityGroup,
                                      SecurityDefinitionListener listener)
Subscribes to instrument replay by security group

Parameters:
securityGroup -
listener -

resolveInstrumentsByChannelID

boolean resolveInstrumentsByChannelID(java.lang.String channelID,
                                      SecurityDefinitionListener listener)
Subscribes to instrument replay by channel ID

Parameters:
channelID -
listener -

stopSymbolListener

void stopSymbolListener(java.lang.String symbol,
                        SecurityDefinitionListener listener)
Unsubscribe from instrument replay by String

Parameters:
symbol -
listener -

stopSecurityDescriptionListener

void stopSecurityDescriptionListener(java.lang.String secDesc,
                                     SecurityDefinitionListener listener)
Unsubscribe from instrument replay by security description

Parameters:
secDesc -
listener -

stopSecIDListener

void stopSecIDListener(long secID,
                       SecurityDefinitionListener listener)
Unsubscribe from instrument replay by security ID

Parameters:
secID -
listener -

stopSecGroupListener

void stopSecGroupListener(java.lang.String securityGroup,
                          SecurityDefinitionListener listener)
Unsubscribe from instrument replay by security group

Parameters:
securityGroup -
listener -

stopChannelListener

void stopChannelListener(java.lang.String channelID,
                         SecurityDefinitionListener listener)
Unsubscribe from instrument replay by channel

Parameters:
channelID -
listener -

subscribeAll

boolean subscribeAll(InstrumentListener listener,
                     RecoveryOptions recoveryOptions)
Subscribes to the market data for all instruments on market

Parameters:
recoveryOptions -

subscribeAll

@Deprecated
void subscribeAll(RecoveryOptions recoveryOptions)
Deprecated. 


unsubscribeAll

void unsubscribeAll()
Unsubscribe from all instruments


stop

void stop()
Stops application. Method is blocked.



Copyright © 2000-2014 EPAM Systems. All Rights Reserved.