Failed to get Futures contracts according to chain ric via websocket API

Hi, i failed to get the all Future contracts according to use the chain RIC(e.g. 0#HSI:) by websocket API, which the error message is "*The record could not be found". it's the venue not support this request or is there something error in request message? Please kindly advise, thanks.

Best Answer

  • umer.nalla
    umer.nalla LSEG
    Answer ✓

    Hi @jarfery.du

    Can you confirm the exact JSON Request you are sending? Also, are you connecting to local TREP/ADS or ERT in Cloud?

    I just tried the following:

    {
      "ID":2,
      "Key":{
        "Name":[
          "0#HSI:"
        ],
        "Service":"ELEKTRON_DD"
      }
    }

    and I received back:

    {
        "Fields":{
          "BCAST_REF":".HSI",
          "CONTEXT_ID":2866,
          "CURRENCY":"HKD",
          "DDS_DSO_ID":4196,
          "DSPLY_NAME":"HANG SENG INDEX",
          "DSPLY_NMLL":"\u6046\u751f\u6307\u6578",
    ...truncated for forum....
          "LINK_2":"HSIQ0",
          "LINK_3":"HSIU0",
          "LINK_4":"HSIZ0",
          "LINK_5":"HSIH1",
    ...truncated for forum....
          "RDN_EXCHD2":"HFE",
          "RDN_EXCHID":"HFE",
          "RECORDTYPE":120,
          "REF_COUNT":5,
          "SPS_SP_RIC":".[SPSHKFOMDVAE2"
        },
        "ID":3,
        "Key":{
          "Name":"0#HSI:",
          "Service":"ELEKTRON_DD"
        },


    Is it possible you missed the end ':' - because if I try

    {
      "ID":2,
      "Key":{
        "Name":[
          "0#HSI"
        ],
        "Service":"ELEKTRON_DD"
      }
    }

    I also get back

    "Text":"*The record could not be found"


Answers

  • Thank you for your prompt reply.

    I used the wrong API(Market price domain) to retrieve Futures contract before, and I just tried to use batch request to retrieve Futures contracts in Cloud, which responds with error message "Access Denied: User req to PE(9017)", it means that we haven't permission to subscribe chain ric data yet. Here is our Machine ID "GE-A-00456807-3-3957".

    I also extract a sample JSON request/respond message as below:

    a). Request JSON message:

    SENT on Session1:

    {

    "ID": 12,

    "Key": {

    "Name": [

    "0#HSI:"

    ],

    "Service": "ELEKTRON_DD"

    }

    }

    b). Respond JSON message:

    RECEIVED on Session1:

    [

    {

    "ID": 12,

    "Type": "Status",

    "State": {

    "Stream": "Closed",

    "Data": "Ok",

    "Text": "Processed 1 total items from Batch Request. 1 Ok."

    }

    }

    ]

    {

    "ID": 13,

    "Type": "Status",

    "Key": {

    "Service": "ELEKTRON_DD",

    "Name": "0#HSI:"

    },

    "State": {

    "Stream": "Closed",

    "Data": "Suspect",

    "Code": "NotEntitled",

    "Text": "Access Denied: User req to PE(9017)"

    }

    },

  • Hi @jarfery.du

    I have emailed your local Refinitiv account team - so they may get in touch directly - but I recommend you also attempt to contact them to discuss changes to your account permissions.


  • Thank you so much!