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?

Best Answer

  • raksina.samasiri
    Answer ✓

    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.