OnixS ICE iMpact Multicast Price Feed Handler C++ library  8.15.1
API documentation
Connectivity Configuration

How to get the latest version of connectivity configuration files?

The latest version of connectivity configuration files available here.

Connectivity Configuration Structure

All public constructors of OnixS::ICE::iMpact::MarketData::Handler accepts the path to the connectivity configuration file as primary parameter. This file contains definitions of multicast groups and network addresses of corresponding servers to which the Handler have to connect to receive market data.

There are three major sections which make up the configuration: TCP connection information, Multicast groups, and Market types.

Shared Connection Settings

The Handler supports automatic reconnect for TCP connections and provides the following settings:

The settings above can be specified in the connectivity configuration:

1 <tcp>
2  <settings>
3  <reconnectTimeoutInSeconds>16</reconnectTimeoutInSeconds>
4  <maximumNumberOfReconnectAttempts>0</maximumNumberOfReconnectAttempts>
5  </settings>
6 </tcp>

Also, you can use the API and set desired values using OnixS::ICE::iMpact::MarketData::TcpSettings::reconnectTimeoutInSeconds and OnixS::ICE::iMpact::MarketData::TcpSettings::maximumNumberOfReconnectAttempts.

TCP Connection Information

TCP connection information section defines attributes of remote system to which server has to connect to request primary information like product definitions for selected markets. This section also defines login information like username and password which the Handler must supply to succeed with requests.

Typical TCP connection information section looks like the following:

1 <tcp>
2  <server name="ICE">
3  <ip>63.247.113.163</ip>
4  <port>3000</port>
5  <userName>Username from ICE</userName>
6  <password>Password from ICE</password>
7  <getStripInfoMessages>N</getStripInfoMessages>
8  <strategyPreference>New</strategyPreference>
9  <localNetworkInterface>eth0</localNetworkInterface>
10  <sslEnabled>Y</sslEnabled>
11  </server>
12 </tcp>

Values of ip and port attributes define connection to remote system. userName and password are the logon-related attributes.

getStripInfoMessages used as a flag to indicate whether the client wants to get Strip Info Messages or not. Y or N. It is N by default.

sslEnabled used to enable/disable SSL for TCP connection to ICE server. By default, SSL is enabled for Non-Production and disabled for Production.

How To Specify Username And Password Using API?

If you don't want to store username and password in the connectivity configuration file, please use the Handler's API. For example:

// Create the Handler settings and specify config file.
HandlerSettings settings;
settings.connectivityConfiguration = "ConnectivityConfiguration.AP1.xml";
// When the Handler is created, `TcpSettings` object is created as well
// from the data in the connectivity configuration file.
// You can keep username and password empty in the config file.
Handler handler(settings);
// Now you can set username and password for a TCP server.
handler.setTcpServerCredentials("ICE", "username", "password");

Defining Multicast Groups

Multicast groups section defines addresses of Multicast Price Feed channels for different types of books for a particular multicast group. Example below shows how single entry have to be defined:

1 <multicast>
2  <group name="ICE Futures US Agricultures">
3  <fullOrderDepth>
4  <live ip="233.156.208.255" port="20001"/>
5  <snapshot ip="233.156.208.254" port="20002"/>
6  </fullOrderDepth>
7  <priceLevel>
8  <live ip="233.156.208.253" port="20003"/>
9  <snapshot ip="233.156.208.252" port="20004"/>
10  </priceLevel>
11  </group>
12 </multicast>

Each group entry defines connection parameters for each type of book defined by the ICE iMpact specification. Therefore, connectivity configuration supposes existence of two entries in each group entry: fullOrderDepth and priceLevel. In own turn, each such entry must contain live and snapshot sub-entries which define connection information for corresponding Multicast Price Feed channel.

Market Types

Finally, Market types section defines the correspondence between multicast groups and types of markets which make up a particular group. Like, ICE Futures Europe Oil group includes IPE Gas Oil Futures, IPE Brent Future, IPE Gas Oil Futures Crack, and other market types. So, the section defines such kind of information.

The following sample depicts how association can be defined:

1 <allMarketTypes>
2  <marketType code="4" multicastGroup="ICE Futures Europe Oil">IPE Gas Oil Futures</marketType>
3  <marketType code="5" multicastGroup="ICE Futures Europe Oil">IPE Brent Futures</marketType>
4  <marketType code="6" multicastGroup="ICE Futures Europe Oil">IPE Gas Oil Futures Crack</marketType>
5 <allMarketTypes>

Typical Connectivity Configuration

Generally, a basic configuration file looks like the following:

1 <?xml version="1.0" encoding="utf-8"?>
2 
3 <connectivityConfiguration>
4 
5 
6 
7  <tcp ip="63.247.113.163" port="3000" userName="Value from ICE Support" password="Value from ICE Support" getStripInfoMessages="N" localNetworkInterface="" />
8 
9 
10 
11  <multicast>
12 
13  <group name="ICE Futures US (Liffe) Metals">
14  <fullOrderDepth>
15  <live ip="233.156.208.232" port="21231"/>
16  <snapshot ip="233.156.208.232" port="21230"/>
17  </fullOrderDepth>
18  <top5pl>
19  <live ip="233.156.208.232" port="21229"/>
20  <snapshot ip="233.156.208.232" port="21228"/>
21  </top5pl>
22 
23  <fullOrderDepth implied="true">
24  <live ip="233.156.208.232" port="21199"/>
25  <snapshot ip="233.156.208.232" port="21198"/>
26  </fullOrderDepth>
27  <top5pl implied="true">
28  <live ip="233.156.208.232" port="21197"/>
29  <snapshot ip="233.156.208.232" port="21196"/>
30  </top5pl>
31  </group>
32 
33  <group name="ICE Futures US (Liffe) Equity Indices">
34  <fullOrderDepth>
35  <live ip="233.156.208.232" port="21227"/>
36  <snapshot ip="233.156.208.232" port="21226"/>
37  </fullOrderDepth>
38  <top5pl>
39  <live ip="233.156.208.232" port="21225"/>
40  <snapshot ip="233.156.208.232" port="21224"/>
41  </top5pl>
42  </group>
43 
44 
45 
46  <group name="ICE Futures US (Liffe) Options">
47  <top10pl>
48  <live ip="233.156.208.232" port="21187"/>
49  <snapshot ip="233.156.208.232" port="21186"/>
50  </top10pl>
51  <topOfBook>
52  <live ip="233.156.208.232" port="21185"/>
53  <snapshot ip="233.156.208.232" port="21184"/>
54  </topOfBook>
55  </group>
56 
57  </multicast>
58 
59 
60 
61  <allMarketTypes>
62  <marketType code="206" multicastGroup="ICE Futures US (Liffe) Metals" optionsMulticastGroup="ICE Futures US (Liffe) Options">Metals</marketType>
63  <marketType code="207" multicastGroup="ICE Futures US (Liffe) Equity Indices" optionsMulticastGroup="ICE Futures US (Liffe) Options">IFUS Equity Indices</marketType>
64  </allMarketTypes>
65 
66 </connectivityConfiguration>