For a deeper look into our Elektron API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
89 13 21 24

Elektron Real-Time

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;
}
elektronrefinitiv-realtimeelektron-sdk
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Hello @s61670,

Your question appears to be on Refinitiv Tick History REST API, not on Elektron API, please confirm so we can move it to the appropriate forum.

question about the Elektron Real-Time


Upvote
Accepted
18.2k 21 13 21

Hi @s61670

You can make multiple subscriptions.


        UInt64 handle1 = consumer.registerClient( ReqMsg().domainType( MMT_MARKET_PRICE ).serviceName( "ELEKTRON_DD" ).name( "<RIC1>" ), client );

        UInt64 handle2 = consumer.registerClient( ReqMsg().domainType( MMT_MARKET_PRICE ).serviceName( "ELEKTRON_DD" ).name( "<RIC2>" ), client );

        UInt64 handle3 = consumer.registerClient( ReqMsg().domainType( MMT_MARKET_BY_PRICE ).serviceName( "ELEKTRON_DD" ).name( "<RIC1>" ), client );

        UInt64 handle4 = consumer.registerClient( ReqMsg().domainType( MMT_MARKET_BY_PRICE ).serviceName( "ELEKTRON_DD" ).name( "<RIC2>" ), client );


icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
89 13 21 24

Please give an example code to parallel synchronized in two threads in Elektron Real Time to work with ESM1 (MTT_MARKET_PRICE) and ESM1m (RawLegacyMarketDepth) in one application.

What is the practice in Electron Real-Time for synchronous parallel Market_Price (quote + trade) and Level 2 (10 levels)?

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.