For a deeper look into our Elektron API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
3 0 0 1

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.

treprdp-apiwebsocketsrrtochain-ric
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.

Upvote
Accepted
20.3k 73 10 20

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"


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
3 0 0 1

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)"

}

},

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.

Upvote
20.3k 73 10 20

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.


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
3 0 0 1

Thank you so much!

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