question

Upvotes
Accepted
87 4 4 11

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-sdkrrtema-apielektron-message-apiquote
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,

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 5.0 MiB each and 10.0 MiB total.

Upvotes
87 4 4 11

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 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea