Subscribe to real-time market data on two symbols and order book data
on one symbol, and publish the incoming data to
Event Stream Processor.
Prerequisites
A network connection to the NYSE datafeed.
The cluster database stores configuration information. Ensure that the cluster
is running, so that the adapter can interact with the projects on the
cluster
Procedure
- Set the user name and password in the example environment:
Operating System |
Step |
Windows |
- Edit the set_example_env.bat script
- Set the ADAPTER_EXAMPLE_USERNAME and ADAPTER_EXAMPLE_PASSWORD
variables to the desired user name/password combination.
- If SSL is enabled, set
ADAPTER_EXAMPLE_CLUSTER_NODE_PROTOCOL to esps. If it is
disabled, set it to esp.
|
UNIX |
- Edit the set_example_env.sh script
- Set the ADAPTER_EXAMPLE_USERNAME and ADAPTER_EXAMPLE_PASSWORD
variables to the desired user name/password combination.
- If SSL is enabled, set
ADAPTER_EXAMPLE_CLUSTER_NODE_PROTOCOL to esps. If it is
disabled, set it to esp.
|
- Edit the start_adapter.sh script.
- Set the JAVA_HOME environment variable to the directory where Java Runtime Environment (JRE) is installed.
Note The NYSE libraries are available in both 32- and 64-bit versions. If your libraries are 32-bit, use a 32-bit JRE. If your libraries are 64-bit, use a 64-bit JRE.
- Start SAP Event Stream Processor.
Operating System |
Step |
Windows |
Open a command window:- Start the cluster:
start_node.bat
- Add project to the cluster, and start it on the cluster:
start_project.bat
|
UNIX |
Open a terminal window: - Start the cluster:
./start_node.sh
- Start the project on the cluster:
./start_project.sh
|
- Edit the mama.properties file in the adapter lib/wombat directory to ensure the subscribe_address
and subscribe_port properties point to a NYSE data feed.
- Start the adapter.
Operating System |
Step |
Windows |
Open a command window and
enter: start_adapter.bat
|
UNIX |
Open a terminal window and enter:
./start_adapter.sh
|
- Wait five to ten seconds for the adapter to initialize.
- Upload a stream record.
Operating System |
Step |
UNIX |
./upload.sh |
Windows |
upload.bat |
- Start the subscriber utility to view data stream content.
Operating System |
Step |
UNIX |
./streamingsubscribe.sh |
Windows |
streamingsubscribe.bat |