question

Upvotes
Accepted
7 1 0 3

How can I get instrument metadata from NDA via RDP API?

Hi ,

I'm from Refinitiv ACE team. We used self platform for update content with python language.
Generally, we use Refinitiv Data Platfrom library to retrieve ric data from elektron.

We have requirement to access NDA data for update metadata when some ric has stock event update.
It's suggested that we can use ADC API (Advanced Datacloud API) via rdp.getdata() to get NDA data.


Example .

request_payload = {

"universe": ["IBM", "GOOG.O", "MSFT.O"],

"fields": ["TR.DivUnadjustedGross",

"TR.DivUnadjustedNet",

"TR.FundCurrency",

"CF_CURR",

"DIVPAYDATE",

"EXDIVDATE",

"CF_EXCHNG",

"ADJFCT_1",

"ADJFCT_2",

"ADJFCT_3",

"ADJFCT_4",

"ADJFCT_5",

"ADJFCT_6",

"TR.CAEffectiveDate",

]

}


endpoint: "https://api.refinitiv.com/data/datagrid/beta1/"

Using rdp account with ESG permission, we still can't get data
{'error': {'code': 414, 'description': 'Unable to collect data for all requested fields.'}}

Could you give suggestion on how to acess these NDA data?

NDA Field Extractions

VALUE AS RIC,

DIVIDEND_AMOUNT

CLA_CURR_NDA_ID_D AS CURR,

CLA_DIV_MARKER_NDA_ID_D AS MARKER,

PAY_DATE,

PAYDATE_DAY_SET,

EX_DATE AS ISSUEEX,

DVP_TYPE,

EX_DATE AS MARKETEX,

VALUE AS EXCH

EX_DATE MKTEX,

ADJUSTMENT_FACTOR AS CAPADJ,

EFFECTIVE_DATE,

EFFECTIVE_DATE_SET,

TYPE

STOCK_DIFFERENT

EX_DATE ISSEX,

ADJUSTMENT_FACTOR ISSADJ,

VALUE EXCH


Arcchaporn

#technologyrdp-api#contentesgnda-rawadc
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
15.5k 33 5 10

Hi @yok ,

I would recommend you look at the newer RD Library for Python, which is an updated API of the deprecated RDP Library (please see RDP Library on the overview page.)

I used the code below. However, some data isn't returned. This content might not available for these instruments and as the moderators on this forum do not have deep expertise in every type of content available through Refinitiv products. Such expertise is available through Refinitiv Helpdesk. If the Helpdesk can show you how to retrieve it using =@TR formula in Eikon Excel to get the fields for the content you're interested, then the moderators on this forum can help you translate it into get_data method in the RD library API call. Refinitiv Helpdesk can be reached via MyRefinitiv. Please specify the content you'd like to get as you mentioned in the question.

Hope this helps and please let me know in case you have any further questions.

import refinitiv.data as rd

rd.open_session()

rd.get_data(universe=["IBM", "GOOG.O", "MSFT.O"],
            fields=["TR.DivUnadjustedGross","TR.DivUnadjustedNet","TR.FundCurrency"
                    ,"CF_CURR","DIVPAYDATE","EXDIVDATE","CF_EXCHNG","ADJFCT_1"
                    ,"ADJFCT_2","ADJFCT_3","ADJFCT_4","ADJFCT_5","ADJFCT_6","TR.CAEffectiveDate"])


1681815763277.png


1681815763277.png (30.8 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.

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.