This topic describes how to run the TIBCO StreamBase® Adapter for CME iLink sample application, which illustrates how to use the operators with a CME server.
For more information on this adapter, see CME iLink Order Routing Adapter.
This sample includes an input and output iLink operators, which are configured to share a connection via a session definition
Test MSGW Session (you will need to alter this session definition to fit your needs as explained below). Once connected, use the sample to
send and receive FIX messages with the CME server.
This adapter relies on StreamBase's High Performance FIX Engine, which requires a separate license from TIBCO and is available as a separate installer from TIBCO's download site.
In StreamBase Studio, import this sample with the following steps:
From the top-level menu, select> .
cmeto narrow the list of options.
Select CME iLink Order Entry adapter from the StreamBase Trade Execution Adapters category.
StreamBase Studio creates a single project for the CME Order Routing Adapter in your current Studio workspace.
Run this sample in Studio using the following steps:
Before running you must:
Obtain a copy of your trading account's access keys, provided to you by CME.
src/main/configurations/CME_iLink.conffile to insert the correct values for your desired session's settings (host, port, comp ids, access keys file and so on).
In the Project Explorer view, open the sample you just loaded.
If you see red marks on a project folder, wait a moment for the project to load its features.
If the red marks do not resolve themselves after a minute, select the project, right-click, and select Maven> from the context menu.
cme-ilink.sbappfile and click the Run button. This opens the SB Test/Debug perspective and starts the module.
In the Manual Input view, select the
Enter the following values:
startofweek(if trying to connect for the first time on a given week), or
Click(which triggers the adapter to log onto the CME server).
NewOrderNewSingleNewOrderCrossstream, enter the following values and click to create a new order:
All other fields: Fill in any fields needed to create a valid order of the type you wish to send, leaving unneeded fields null.
If the order was properly formulated, expect to receive one or more ExecutionReport messages back on the Input operator's ExecutionReport port. If the order was rejected, expect to see a Reject message on the operator's AdminMessages port, an ExecutionReport with its OrdStatus field set to 8 (Rejected), or some other FIX message explaining the error (depending on the nature of the problem).
When done, press F9 or click the Terminate EventFlow Fragment button.
This sample contains the following files:
The sample EventFlow application,
A corresponding adapter configuration file,
CME_iLink.conf, which the StreamBase Server uses to configure the Java environment to locate the CME iLink server(s).
fixengine.propertiesfile, required for proper operation of the High Performance FIX Engine underlying the adapter.
A placeholder file (in this case called
cmeKeys.txt) that serves as an example for the access keys you will need to obtain from CME in order to be allowed access to their systems.
When you load the sample into StreamBase Studio, Studio copies the sample project's files to your Studio workspace, which is normally part of your home directory, with full access rights.
Load this sample in StreamBase Studio, and thereafter use the Studio workspace copy of the sample to run and test it, even when running from the command prompt.
Using the workspace copy of the sample avoids permission problems. The default workspace location for this sample is:
See Default Installation Directories for the default location of
studio-workspace on your system.