net.sourceforge.eclipsetrader.core
Interface ILevel2Feed


public interface ILevel2Feed

Interface for Level II data feed plugins.


Method Summary
 void snapshotLevel2()
          Take a single snapshot from the feed.
 void startLevel2()
          Starts the level2 data feed.
 void stopLevel2()
          Stops the level2 data feed.
 void subscribeLevel2(Security security)
          Add the given security to the list of securities feeded by this plugin.
 void unSubscribeLevel2(Security security)
          Remove the given security from the list of securities feeded by this plugin.
 

Method Detail

subscribeLevel2

public void subscribeLevel2(Security security)
Add the given security to the list of securities feeded by this plugin.

Parameters:
security - the security to add

unSubscribeLevel2

public void unSubscribeLevel2(Security security)
Remove the given security from the list of securities feeded by this plugin.

Parameters:
security - the security to remove

startLevel2

public void startLevel2()
Starts the level2 data feed.
This method may be called more than once without stop being called first. implementors should take care of this and avoid errors and duplicated threads.


stopLevel2

public void stopLevel2()
Stops the level2 data feed.
This method may be called more than once without start being called first. implementors should take care of this and avoid errors and duplicated threads.


snapshotLevel2

public void snapshotLevel2()
Take a single snapshot from the feed.