MMT_MARKET_PRICE using this domain, can I get a trade?
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;
}