question

Upvotes
Accepted
87 7 13 27

what is the side-effect if request a qoute code that does not exist

I want to determine what is the side-effect if I request a quote that it does not exist, shown as below:

consumer.registerClient( ReqMsg().serviceName( "ELEKTRON_DD" ).name( "/abcd.HK" ), client ,(void *) &reqQuoteType1);

in the registerClient(), "/abcd.HK" is a bad quote code,

I wan to know the side-effect, if I request a bad code not carefully.

elektronrefinitiv-realtimeelektron-sdkema-apirrtelektron-message-apiquote
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
Accepted
25.3k 87 12 25

Hi,

The request will be rejected by the server and you should receive an appropriate StatusMsg via the onStatusMsg callback handler e.g.

StatusMsg
    streamId="5"
    domain="MarketPrice Domain"
    state="Closed / Suspect / Not found / 'The record could not be found'"
    name="/abcd.HK"
    nameType="1"
    serviceId="259"
    serviceName="IDN_RDF"
StatusMsgEnd

The stream will be closed by the API so you wont need to call unregisterClient for that instrument.

Obviously, you should try and ensure that RIC codes you request are valid when possible.

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
87 7 13 27

Hi Umer
Thank you very much, I get it.

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.