How to Call onUpdateMsg() method when we are Using EMA Batch Request?

nishikarale
nishikarale Newcomer
How to Call onUpdateMsg() method when we are Using EMA Batch Request?

Welcome!

It looks like you're new here. Sign in or register to get started.

Best Answer

  • warat.boonyanit
    Answer ✓

    The onUpdateMsg() should be called when the consumer received an update message, e.g. when there is a new quote or new trade.

    However, please make sure that you haven't set the interestAfterRefresh to false.

    UInt64 handle = consumer.registerClient( ReqMsg().serviceName( "API_ELEKTRON_EPD_RSSL" ).payload( ElementList().addArray( ENAME_BATCH_ITEM_LIST, OmmArray().addAscii( "JPY=" ).addAscii( "EUR=" ).complete() ).complete() ).interestAfterRefresh( true ) , client );

Answers

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.