import os os.environ["RD_LIB_CONFIG_PATH"] = "../Configuration" import refinitiv.data as rd from refinitiv.data.content import pricing rd.open_session() non_streaming = rd.content.pricing.Definition( ['CAD='], fields=['BID', 'ASK'] ).get_stream() # We want to just snap the current prices, don't need updates # Open the instrument in non-streaming mode non_streaming.open(with_updates=False) # Snapshot the prices at the time of the open() call non_streaming.get_snapshot() non_streaming.close() rd.close_session()