OnixS C++ B3 Binary UMDF Market Data Handler 1.10.0
Users' manual and API documentation
Loading...
Searching...
No Matches
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:

<configuration environment="TEST">
<channel id="80">
<instrument>
<a ip="233.205.192.108" port="33080"/>
</instrument>
<snapshot>
<a ip="233.205.192.106" port="34080"/>
</snapshot>
<incremental>
<a ip="233.205.192.107" port="31080"/>
<b ip="233.205.192.142" port="31080"/>
</incremental>
</channel>
...

The path to the configuration file is passed to the Handler settings as follows:

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
All Channels Sample