OnixS C++ B3 Binary UMDF Market Data Handler  1.7.0
API documentation
Channel Config File

The connectivity configuration file can be used to store channel feed parameters for all market data channels in the some environment (Test or Production).

For example:

1 <configuration environment="TEST">
2  <channel id="80">
3  <instrument>
4  <a ip="233.205.192.108" port="33080"/>
5  </instrument>
6  <snapshot>
7  <a ip="233.205.192.106" port="34080"/>
8  </snapshot>
9  <incremental>
10  <a ip="233.205.192.107" port="31080"/>
11  <b ip="233.205.192.142" port="31080"/>
12  </incremental>
13  </channel>
14  ...

For example:

HandlerSettings settings;
settings.loadFeeds(80, PATH_TO_CHANNEL_CONFIG_FILE);

Channel Ids

If it is necessary to get ids for all chanels from the connectivity configuration file, OnixS::B3::MarketData::UMDF::HandlerSettings::gatherChannelIds(std::vector<int>& channelIds, const std::string& channelConfigFile) can be used.

std::vector<int> channelIds;
HandlerSettings::gatherChannelIds(channelIds, PATH_TO_CHANNEL_CONFIG_FILE);
See also