question

Upvotes
Accepted
7 1 0 2

Can't get data from graphql via rdp api

Hi,

I want to fetch data of dividend event from graphiQL .

Using this query

query ($QuoteID: Long) {
  DividendEvents(filter: {AND: [
    {Dividends: {MarketDetails: {UnderlyingQuoteId: {EQ: $QuoteID}}}}, 
    {Dividends: {Options: {CashMovement: {PaymentDate: {GT_DATETIMENOW: {Interval: DAY, Add: 0}}}}}}
  ]}) {
    ObjectId
    UnderlyingEquityInstrument {
      ObjectId
      Reference {
        InstrumentCommonNames {
          InstrumentCommonName
        }
      }
    }
    Dividends {
      Options {
        CashMovement {
          AmountStatusCode
          CreditDebitIndicator
          PayDateFlag
          PaymentDate
          SequenceNumber
        }
      }
    }
  }
}

And query Variable

{
  "QuoteID": "55836051562"
}

It can generate expected response as below.
resp.txt

But when using this endpoint https://api.refinitiv.com/data-store/v1/graphql from api playground
It doesn't return expected result. And give error message.

 "warnings": [
      {
        "field": "EDFInstrument",
        "message": "User did not have entitlements to the field.",
        "type": "NO_ENTITLEMENTS_FOR_FIELD",
        "warningCode": "DW003"
      },
      {
        "field": "DividendEvents",
        "message": "User did not have entitlements to the field.",
        "type": "NO_ENTITLEMENTS_FOR_FIELD",
        "warningCode": "DW003"
      }

Full response is attached rdp_no_resp.txt .


Could you please suggest what could be wrong?

#productapigraph-ql
resp.txt (3.3 KiB)
rdp-no-resp.txt (3.3 KiB)
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

· Write an Answer
Upvotes
Accepted
14.1k 30 5 10

Hi @yok ,

The error message indicates that your account doesn't have a permission to this field.

You can contact your Refinitiv account representative to add the permission. Hope this helps and please let me know in case you have any further questions.

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.