question

Upvotes
Accepted
7 2 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.

@ovx-wxu

Hi,

Thank you for your participation in the forum.

Is the reply below satisfactory in answering your question?

If yes please click the 'Accept' text next to the most appropriate reply. This will guide all community members who have a similar question.

Otherwise please post again offering further insight into your question.

Thanks,

AHS

Hi,

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,

AHS

1 Answer

· Write an Answer
Upvotes
Accepted
22k 58 14 21

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.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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