RTO Chain\Tile RIC request

Kacper_Piernicki1
edited August 13 in Elektron

Hello Team,

I am raising this question on behalf of my client. He is trying to use chain RIC 0#NIF*.NS and he is facing 2 difficulties.

  1. He would like to use this Chain RIC like it works in Eikon\Workspace Monitor app. So once he will request chain he would like to start receiving update for all RIC that this chain contain. Is there any way to do this like this, do we have any example code? Or maybe it will be possible with Tile RIC.
  2. When he request mention chain RIC he this is the reply:

"Fields":{

"BCAST_REF":".NSEI",

"CONTEXT_ID":4636,

"CURRENCY":"INR",

"DDS_DSO_ID":4136,

"DSPLY_NAME":"NIFTY50 OP",

"LONGLINK1":".NSEI",

"LONGLINK10":"NIF019300H5.NS",

"LONGLINK11":"NIF019300T5.NS",

"LONGLINK12":"NIF019350H5.NS",

"LONGLINK13":"NIF019350T5.NS",

"LONGLINK14":"NIF019400H5.NS",

"LONGLINK2":"NIF019100H5.NS",

"LONGLINK3":"NIF019100T5.NS",

"LONGLINK4":"NIF019150H5.NS",

"LONGLINK5":"NIF019150T5.NS",

"LONGLINK6":"NIF019200H5.NS",

"LONGLINK7":"NIF019200T5.NS",

"LONGLINK8":"NIF019250H5.NS",

"LONGLINK9":"NIF019250T5.NS",

"LONGNEXTLR":"1#NIF*.NS",

"LONGPREVLR":null,

"PREF_DISP":13095,

"PREF_LINK":"1#NIF*.NS",

"PREV_DISP":5181,

"PROD_PERM":5620,

"RDNDISPLAY":160,

"RDN_EXCHD2":"NSI",

"RDN_EXCHID":" ",

"RECORDTYPE":120,

"REF_COUNT":14,

"SPS_SP_RIC":".[SPSNSEIVAE1"

Is there any way to display all RICs under this chain at once? When he will request 1#NIF*.NS next part of the chain he will get next RIC, but is there any way to do this in one request?

Answers

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    @Kacper_Piernicki1

    Thank you for reaching out to us.

    What API is the client using?

    Please refer to the following articles regarding chain RICs.

  • Hello @Jirapongse

    Thank you for your help!

    Client will be using WebSocket API.

    So summarizing Retrieve underlying Instrument of Chain Symbol article, just to be sure that I understand them correctly, basically present how to download RIC list from RTO using chain RIC, but after this client need to subscribe for this list if they want to get real time updates, is this correct?

    The other question, regarding chains API available on RDP platform, do you know if this support v2 authentication, if client already receive his RTO Service ID will he be able to use it or it will be require additional permissions?

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    The client should start by subscribing to the initial chain RIC, such as 0#NIF*.NS. Each chain RIC includes up to 14 individual RICs, listed in the LONGLINK1 to LONGLINK14 fields.

    To determine if additional chains are available, the client must check the LONGNEXTLR field. If it contains a value, the client should subscribe to the RIC specified there to access the next chain. This process should be repeated until the LONGNEXTLR field is empty, indicating the end of the chain sequence.

    Once all chains have been retrieved, the client will have access to the complete list of RICs. The final step is to subscribe to each of these RICs individually to receive real-time data.

    I am not sure about the permission of v2 authentication. The client can test it by sending a request to the chain service on RDP.