Elektron SDK Java - Example of Index constituent retrieval

Could anyone please provide an example of how to retrieve the index constituents, BEL20 for instance, using Elektron API?

Best Answer

  • Jirapongse
    Jirapongse ✭✭✭✭✭
    Answer ✓

    I think a RIC for BEL20 index is 0#.BFX. You can use this RIC with the consumer.series200.example270_SymbolList example in the EMA Java package. You need to modify the code in the main function.

    consumer = EmaFactory.createOmmConsumer(EmaFactory.createOmmConsumerConfig().host("ipaddress:14002").username("user")); 

    consumer.registerClient(EmaFactory.createReqMsg().domainType(EmaRdm.MMT_SYMBOL_LIST).serviceName("ELEKTRON_DD").name("0#.BFX"), appClient, 0); <br>

    Please change the following information in the code:

    • change ipaddress to the hostname or IP address of your Elektron feed or ADS
    • change user to the valid username to connect to the server
    • change ELEKTRON_DD to the Elektron service provided by the server

    The output looks like:

    image

    For other indices, you can contact the Helpdesk support mentioned by Nick for valid RICs.

Answers