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?

Best Answer

  • Jirapongse
    Jirapongse admin
    Answer ✓

    @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.