The refinitiv.dataplatform.eikon is returning no value now. 1 month ago it was

Options
Why is it returning <NA>? This code worked fine 1 month ago

import refinitiv.dataplatform.eikon as ek
ek.set_app_key('DEFAULT_CODE_BOOK_APP_KEY')

df_standard, err = ek.get_data(
instruments = ['SBFG3.SA'],
fields = ['TR.F.IncomeStatement.fieldname','TR.F.IncomeStatement','TR.F.IncomeStatement.date','TR.F.IncomeStatement.FCC','TR.F.IncomeStatement.fperiod'],
parameters = {'Scale': 6, 'SDate': 0, 'EDate': -30,'Period':'FQ0', 'FRQ': 'FQ','ConsolBasis':'Consolidated'}
)
display(df_standard)

Answers

  • augusto_krappa
    augusto_krappa Newcomer
    edited July 1
  • Jirapongse
    Jirapongse ✭✭✭✭✭

    @augusto_krappa

    Thank you for reaching out to us.

    The refinitiv.dataplatform library is now feature-complete. We have introduced a new library, the LSEG Data Library for Python, which offers the same functionality. Please try the code with the new library instead.

    I tested the code on the LSEG Data Library for Python and it can return data properly.

    import lseg.data as ld
    ld.open_session(app_key="<APP KEY>")
    df_standard = ld.get_data(
                universe = ['SBFG3.SA'],
                fields = ['TR.F.IncomeStatement.fieldname','TR.F.IncomeStatement','TR.F.IncomeStatement.date','TR.F.IncomeStatement.FCC','TR.F.IncomeStatement.fperiod'],
                parameters = {'Scale': 6, 'SDate': 0, 'EDate': -30,'Period':'FQ0', 'FRQ': 'FQ','ConsolBasis':'Consolidated'}
            )
    
    df_standard
    
    image.png

    The library's examples are available on GitHub.