Refinitiv API error with local jupyter notebook

When the following code is executed in CODEBK it works well, but in local jupyter notebook is running generating the variable dataframe = None.



import refinitiv.dataplatform as rdp

from refinitiv.dataplatform.content import ipa

from refinitiv.dataplatform.content.ipa import option

from refinitiv.dataplatform.content.ipa.models import BidAskMid

rdp.open_desktop_session('my app_key')

dataframe = rdp.get_option_analytics(

universe = ["FCHI700000C3.p", "FCHI675000O3.p"],

calculation_params = option.CalculationParams(

valuation_date="2023-01-26",

pricing_model_type = ipa.enum_types.PricingModelType.BINOMIAL

),)


print(dataframe)

Best Answer

  • Jirapongse
    Jirapongse ✭✭✭✭✭
    Answer ✓

    @iguzman

    According to the error, it is unauthorized access. Please try to enable logging in the RDP library by using the method mentioned in this discussion.

    We need to verify that the error (401 Unauthorized) is from which endpoint or service.

Answers