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.
Task
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 Event Stream Processor.
Operating System
Step
UNIX
Open a terminal window:
Start the example cluster:
start_node.sh
Start the project on the cluster:
start_project.sh
Windows
Open a command window:
Start the example cluster:
start_node.bat
Add project to the cluster, and start it on the
cluster:
start_project.bat
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
UNIX
Open a terminal window and enter:
start_adapter.sh
Windows
Open a command window and enter:
start_adapter.bat
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.