RIC: ESM1 (MARKET_PRICE)
RIC: ESM1m (Level 2)
What code to use?
How to get these two RICs in parallel in one application?
code:
int main(int argc, char* argv[]) { EmaString configFile; if (argc == 2) configFile = argv[1]; try { AppClient client; OmmConsumer consumer(OmmConsumerConfig(configFile). username("MY_USERNAME"). password("MY_PASSWORD"). clientId("MY_CLIENT_ID"). consumerName("Consumer_4")); UInt64 handle = consumer.registerClient( ReqMsg().domainType( MMT_MARKET_PRICE ).serviceName( "ELEKTRON_DD" ).name( "ESM1" ), client ); sleep( 60000 ); } catch ( const OmmException& excp ) { cout << excp << endl; } return 0; }