Hi team, I am from the Customer Support - Specialist and I am assisting a client in getting historical curve 0#NOKZ=R for a specific date. Initially I provided this code:
import refinitiv.data as rd
session = rd.session.desktop.Definition(app_key=('DEFAULT_CODE_BOOK_APP_KEY')).get_session()
session.open()
rd.session.set_default(session)
nokz_chain = rd.content.pricing.chain.Definition(name='0#NOKZ=R').get_stream()
nokz_chain.open(False)
print('0#NOKZ=R constituents :', nokz_chain.constituents)
nokz = rd.get_history(universe=nokz_chain.constituents, fields=['ZERO_YLD1'], end = '2024-11-30', count=1)
print(nokz)
but client came back and said that they dont use an app key so I tried another code (below) and now they see the RDError on their end
import refinitiv.data as rd
from refinitiv.data.discovery import Chain
nokz_chain = rd.content.pricing.chain.Definition('0#NOKZ=R').get_stream()
nokz_chain.open(with_updates = False)
print('0#NOKZ=R constituents :', nokz_chain.constituents)
nokz = rd.get_history(universe=nokz_chain.constituents, fields=['ZERO_YLD1'], end = '2024-11-30', count=1)
print(nokz)
the error:
Any help is appreciated, thanks!