question

Upvotes
Accepted
3 1 4 7

What all fields can be accessed using refinitiv.dataplatform?

New to Refinitiv! I am using refinitiv.dataplatform to fetch some data.

I see I can only access fields with TR. as prefix. Others fields eg: CF_prefix, TRADE_DATE, etc return no results - Trying this for RICs = ["CFI2Zc1","CFI2Zc2","CFI2Zc3","CFI2Zc4"]

(Cannot see TRADE_DATE)

data = rdp.get_data(

universe=["CFI2Zc1","CFI2Zc2","CFI2Zc3","CFI2Zc4"],

fields=["TRADE_DATE","TR.CLOSEPRICE"] #check Data Item in browser for history

)

Output:

instrument TR.CLOSEPRICE

0 CFI2Zc1 89.81

1 CFI2Zc2 93.53

2 CFI2Zc3 97.55

3 CFI2Zc4 102.3

#product#contentrefinitiv-data-platformrefinitiv-data-platform-libraries
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.

Upvotes
Accepted
14.4k 30 5 10

Hi @lisa.mcentee ,

Is this what you're looking for? to get the date of data in the field, you can use .date as a suffix of the field name

data = rdp.get_data(
    universe=["CFI2Zc1","CFI2Zc2","CFI2Zc3","CFI2Zc4"],
    fields=["TR.CLOSEPRICE.date","TR.CLOSEPRICE"] #check Data Item in browser for history
)
data

1670999587807.png

Available fields and parameters can be discovered in the Data Item Browser tool, you may check the video Data Item Browser and Eikon Data API in Python for how to use it.

1670999733480.png


In addition, I would recommend you look at the newer RD Library for Python - which is currently in Beta and due for release in the coming months. It should have much-improved error/session handling than RDP Library once it is released.

For a position statement on the older RDP Library please see the overview page.


1670999587807.png (19.1 KiB)
1670999733480.png (72.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.

Upvotes
3 1 4 7

Please can you let me know what is refinitiv.data equivalent for rdp.open_platform_session in refinitiv.dataplatform.

More specifically, the equivalent function for below:

rdp.open_platform_session(

'key******************************************',

rdp.GrantPassword(

'username',

'Password'

)

)

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.