question

Upvotes
Accepted
87 4 4 11

270__SymbolList can not get the data

I run the Example: Cpp-C/Ema/Examples/Training/Consumer/200_Series/270__SymbolList

Consumer.cpp:

try {
AppClient client;

OmmConsumer consumer( OmmConsumerConfig().host( "localhost:14002" ).username( "user1" ) );

UInt64 handle = consumer.registerClient( ReqMsg().domainType( MMT_SYMBOL_LIST ).serviceName( "ELEKTRON_DD" ).name( "0#/MBD.HK" ), client );

}
but I get the result :

Item Name: 0#/MBD.HK
Service Name: ELEKTRON_DD

Item State: Closed / Suspect / Not found / 'The record could not be found'

how can i the the result success,
what the Consumer.cpp should be.?

elektronrefinitiv-realtimeelektron-sdkrrtema-apielektron-message-api
icon clock
10 |1500

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

Upvotes
Accepted
20.3k 73 10 20

Hi @luxiangyuan

The message means that the RIC you have requested is not available in a SymbolList Domain format.

The RIC is actually the older Chain format - so you would request using the default MarketPrice domain.

Please see the following two articles for an example of Chain handling using EMA

Simple Chain objects for EMA - Part 1

Simple Chain objects for EMA - Part 2

icon clock
10 |1500

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

Upvotes
87 4 4 11

tks Umer Nalla

I am a new developer in china with EMA C++

the article is very well,but developed in java,I even can not find the "FlatChain" in sdk(C++);

now my question is how can I get stock list conveniently with EMA (C++)

icon clock
10 |1500

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

Upvotes
20.3k 73 10 20

Hi @luxiangyuan

The techniques and mechanism described in the article for processing Chains is much the same in C++ and Java. So, you could refer to the articles and use the understanding to develop your own code to process chains in C++.

EMA does not provide any built in classes for processing Chains specifically.

icon clock
10 |1500

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

Upvotes
87 4 4 11

hi Umer:

but where can I find the implements of "

import com.thomsonreuters.platformservices.elektron.objects.chain.Chain;

import com.thomsonreuters.platformservices.elektron.objects.chain.FlatChain;"

So I can refer to.

thanks a lot

icon clock
10 |1500

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

Upvotes
20.3k 73 10 20

Hi @luxiangyuan

As mentioned in the Chain articles, they can be found on github

TR-API-Samples/Article.EMA.Java.ChainExpander

icon clock
10 |1500

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

Upvotes
87 4 4 11

Hi Umer:

the source code of the FlatChain is on the branch "feature-java7-compatibility"

thank you !!!

icon clock
10 |1500

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

Upvotes
87 4 4 11

hi umer:

Is there any usage of java sdk "Elektron-SDK1.2.0.java"?

I develop whth c++ almost,

So I need the usage of the java sdk strongly。

icon clock
10 |1500

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

Hi,

I can see you asked this question on a separate post and a colleague has answered. If that is not the same question - please explain further what usage you require.

Click below to post an Idea Post Idea