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.
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.