Hello,
I am trying to pull real time contributor quotes using refinitiv.data.
import refinitiv.data as rd
import os
os.environ["RD_LIB_CONFIG_PATH"] = "C:\Projects\Configuration"
rd.open_session()
test_ric = ['465410AH1=2M', '718592AB4=2M', '059891AB7=2M', '059891AA9=2M', '448414AE2=2M', '448414AG7=2M', '900123AL4=2M', 'USG46715AD3=2M', 'XS005974615=2M', 'US465410AH18=MKCP']
try:
response = rd.content.pricing.Definition(
test_ric,
fields=["BID_YIELD","ASK_YIELD", "BID", "ASK"]
).get_data()
print(response.data.df)
except Exception as e: print(e)
rd.close_session()
I was able to successfully pull the quotes a few times, but there seems to be inconsistency with the get_data() function, often getting #N/P for the requested fields . I am trying to understand if this is a normal issue or if I have to adjust my code in order to avoid it.