question

Upvotes
Accepted
3 0 0 2

Determine field name

Hello, when requesting a series in Datastream Rest without a field, how to determine the field being returned?

I.e. requesting TRECLYA with no field is the same, as RY, but how to know, when requesting without a field which field is returned.


How to request a field, where the Datastream Frontend says "None" as field? I.e. BDTHHYPHF there is the field None. How to explicit request None?

#contentdisplay-fieldsdatasteam-api
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.

Hi @schmitzmartin

Thank you for your participation in the forum.

Is the reply below satisfactory in resolving your query?

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

1 Answer

· Write an Answer
Upvotes
Accepted
78.6k 248 52 74

@schmitzmartin

Thanks for reaching out to us.

Typically, you can use the DEF data type which returns the default datatype for an instrument or series.

df = ds.get_data(tickers='TRECLYA,BDTHHYPHF',fields=['DEF'], kind=0)

The output is:

1679980186649.png

However, it returns NA for BDTHHYPHF. You need to contact the Refinitiv Datastream Web Service support team directly via MyRefinitiv to verify it.

You can use 'X' to request the default datatype.

df = ds.get_data(tickers='BDTHHYPHF',fields=['X'], kind=1, freq='Q', start='2013-12-01')

I hope that this information is of help.


1679980186649.png (11.9 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.