This sample demonstrates the use of the TIBCO StreamBase® Adapter for Digitec D3 Streaming Interface. See Digitec D3 Streaming Interface Adapter for details on the use and structure of this adapter.
In StreamBase Studio, import this sample with the following steps:
From the top-level menu, click> .
digiin the search field to narrow the list of options.
Digitec D3 Streaming Interface adaptersample from the StreamBase Market Data Adapters category,
StreamBase Studio creates a project for this sample.
Double-click to open the sample application,
Select the Digitec D3 Streaming adapter and select the Adapter Properties tab. Fill in the required information with your D3 server name and port.
Click the Run button. This opens the SB Test/Debug perspective and starts the module.
initial-subscribe.csvhas two currency pairs that will subscribed to as soon as the adapter is connected to the D3 Pricing Engine.
UpdateOutoutput port emits tuples as market data is returned from the D3 Pricing Engine.
If you wish to subscribe to other currency pairs, select the Manual Input view. Set the command field to
SubscriptionIDfield to a unique string (such as
someID1234), and the
symbolfield to a currency pair (such as
GBPUSD). Click .
When done, press F9 or click the Terminate EventFlow Fragment button.
This section describes how to run the sample in UNIX terminal windows or Windows command prompt windows. On Windows, be sure to use the StreamBase Command Prompt from the Start menu as described in the Test/Debug Guide, not the default command prompt.
Use StreamBase Studio to set up the Digitec D3 Streaming adapter properties as described in the previous section.
Open two terminal windows on UNIX, or two StreamBase Command Prompt s on Windows. In each window, navigate to your workspace copy of the sample, as described above.
In window 1, type:
In window 2, type:
sbc dequeue -v
Look for market data tuples for the currency pairs in the
initial-subscribe.csvfile on the
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.