Package velox.api.layer1
package velox.api.layer1
This package contains Bookmap L1 api. There might be some extra classes you
don't really need available though, so examples are best place to get
started.
To develop strategies more easily do:
1) Create empty "bm-strategy-package-fs-root.jar" in the folder with your classes.
2) Select it in bookmap strategy loading dialog and configure bookmap to load the strategy. Now you can remove the file.
3) Configure you IDE to run bookmap. For this configure ide to
- add C:\Program Files\Bookmap\Bookmap.jar to classpath
- start velox.ib.Main
- Use C:\Bookmap\Config as working directory
4) Now you should be able to use this configuration to start bookmap with latest version of your strategy.
To develop strategies more easily do:
1) Create empty "bm-strategy-package-fs-root.jar" in the folder with your classes.
2) Select it in bookmap strategy loading dialog and configure bookmap to load the strategy. Now you can remove the file.
3) Configure you IDE to run bookmap. For this configure ide to
- add C:\Program Files\Bookmap\Bookmap.jar to classpath
- start velox.ib.Main
- Use C:\Bookmap\Config as working directory
4) Now you should be able to use this configuration to start bookmap with latest version of your strategy.
-
ClassDescriptionExtends all possible Layer1 listeners.Provides default empty implementations.Source of
Layer1ApiAdminListenerevents.Listens to general events, such as login and connection state, system messages and upstream user messages.Class implementing this should provide general Layer1 Api functions.Deprecated.Standard implementation ofLayerApiListenable: handles listener registrations.Provides default empty implementations.Source ofLayer1ApiDataListenerevents (trades, depth, market mode).Listener for market data events: trades, market-by-price depth and market mode.Class implementing this should provide trade/depth data to subscribersEvery strategy should implement this interface
Defines action when strategy is being unloaded (removing added GUI, disposing dialogs, etc)Provides default empty implementations.Source ofLayer1ApiInstrumentListenerevents (subscription results, instrument removal).Listener for instrument eventsClass implementing this should provide ability to work with instrumentsIf this interface is implemented, when strategy checkbox is selected/deselected in Studies config / Strategy config dialog, strategy will not be loaded/unloaded, instead it will be notified via this interfaceExtends all possible Layer1 listeners.Provides default empty implementationsSource ofLayer1ApiMboDataListenerevents (market-by-order updates).Listener for MBO (market-by-order) events: individual resting orders in the book rather than aggregated price levels.Class implementing this should provide MBO data to subscribersIf add-on implement this interface than it will be not unloaded and then loaded again when user has reset chart settings.Extends all possible Layer1 provider interfaces.Provides default empty implementations.Source ofLayer1ApiTradingListenerevents (order updates, executions, status and balance).Listener for order routing.Class implementing this should provide ability to work with ordersImplement this interface if you want strategy to show custom panels when selected in strategies dialogImplement this interface if you want your strategy to display description in strategies dialogDeprecated.Extends all Layer1 listenable interfaces.
Layer1ApiNotReloadedOnSettingsChangeinstead.