question

Upvotes
Accepted
7 1 5 3

TRKD (16.9.1.2 JSON Sample Request - Get Quotes) - Access Denied Error

I got "ACCESS_DENIED" as the response StatusMsg in the JSON response when trying the sample JSON call in the documentation, access token was set in header

Request:

{

"RetrieveItem_Request_3": {

"TrimResponse": false,

"ItemRequest": [

{

"Fields": "",

"RequestKey":

{

"Name": "MSFT.O",

"NameType": "RIC"

},

"Scope": "All"

}

]

}

}


Response:

{

"RetrieveItem_Response_3": {

"ItemResponse": [

{

"Item": [

{

"RequestKey": {

"Name": "MSFT.O",

"Service": "IDN",

"NameType": "RIC"

},

"QoS": {

"TimelinessInfo": {

"Timeliness": "UNSPECIFIED",

"TimeInfo": 0

},

"RateInfo": {

"Rate": "UNSPECIFIED",

"TimeInfo": 3000

}

},

"Status": {

"StatusMsg": "ACCESS_DENIED",

"StatusCode": 18

},

"Fields": null

}

]

}

]

}

}

Any idea what might have caused this error?

rkd-apirkdquote
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Upvotes
Accepted
16.7k 42 12 19

Hi @ovx-wxu, Your id probably does not have permission to invoke that endpoint. This call works fine for me:

{
  "RetrieveItem_Request_3": {
    "TrimResponse": False,
    "ItemRequest": [
      {
        "Fields": "",
        "RequestKey":
        {
          "Name": "MSFT.O",
          "NameType": "RIC"
        },
        "Scope": "All"
      }
    ]
  }
}

response:

{
  'RetrieveItem_Response_3': {
    'ItemResponse': [{
        'Item': [{
            'RequestKey': {
              'Name': 'MSFT.O',
              'Service': 'IDN',
              'NameType': 'RIC'
            },
            'QoS': {
              'TimelinessInfo': {
                'Timeliness': 'DELAYED',
                'TimeInfo': 900
              },
              'RateInfo': {
                'Rate': 'TIME_CONFLATED',
                'TimeInfo': 3000
              }
            },
            'Status': {
              'StatusMsg': 'OK',
              'StatusCode': 0
            },
            'Fields': {
              'Field': [{
                  'DataType': 'Utf8String',
                  'Name': 'DSPLY_NAME',
                  'Utf8String': 'MICROSOFT C'
                }, {
                  'DataType': 'Double',
                  'Name': 'TRDPRC_1',
                  'Double': 207.165
                }, {
                  'DataType': 'Double',
                  'Name': 'TRDPRC_2',
                  'Double': 207.172
                }, {....

Please contact your Refinitiv account manager regarding the entitlements.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.