I am trying to pull real time contributor quotes using refinitiv.data.
import refinitiv.data as rd
os.environ["RD_LIB_CONFIG_PATH"] = "C:\Projects\Configuration"
test_ric = ['465410AH1=2M', '718592AB4=2M', '059891AB7=2M', '059891AA9=2M', '448414AE2=2M', '448414AG7=2M', '900123AL4=2M', 'USG46715AD3=2M', 'XS005974615=2M', 'US465410AH18=MKCP']
response = rd.content.pricing.Definition(
fields=["BID_YIELD","ASK_YIELD", "BID", "ASK"]
except Exception as e: print(e)
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.