We are new to the RDP library and try to setup a retrieval of snapshot data from Refinitiv.
Currently it looks like my code is able to log on correctly - but the call to get_snapshot gives an error. Can you help us with this?
Here is a short abstract of my code - showing the issue:
import rf_settings as settings
import refinitiv.dataplatform as rdp
session = rdp.open_platform_session(
settings.APP_KEY,
rdp.GrantPassword(
username=settings.RDP_LOGIN,
password=settings.RDP_PASSWORD
)
)
universe = ['EUR=']
fields = ['ASK', 'BID']
response = rdp.Pricing.get_snapshot(universe, fields)
rdp.close_session()
When I run this code I see the following error:
ERROR!!! An error occured while requesting URL('
https://api.refinitiv.com/data/pricing/beta3/snapshots?universe=EUR=&fields=ASK,BID').
Exception has occurred: ConnectError
[Errno 11001] getaddrinfo failed
During handling of the above exception, another exception occurred:
The above exception was the direct cause of the following exception:
File "D:\Project\refinitiv\rdp_library_connection.py", line 15, in
response = rdp.Pricing.get_snapshot(universe, fields)