Good afternoon,
Establishing connectivity with a Python script to our locally hosted RTDS servers, I am able to connect without issues and request RIC data as session with call such as:
ricarray = "MSFT.O"
result=rd.get_data(
universe=ricarray,)
print (result)
Result:
Instrument PROD_PERM RDNDISPLAY ... ODDTRN_UNS TRNOVR_UNS ACVOL_UNS
0 MSFT.O 74 66 ... 22483411.52 34832249 79628
But I am unable to make the same request but with symbol_conversion as instructed in the documentation. All other parameters for connectivity are the same. (server, dacs user, etc)
just to clarify I've already imported it, this is far above in my code:
from refinitiv.data.content import symbol_conversion
…
response = symbol_conversion.Definition("MSFT.O").get_data()
response.data.df
OR
response = symbol_conversion.Definition("MSFT.O").get_data()
print(response.data.df.to_string())
Result:
Traceback (most recent call last):
File "C:\Users\n960152\Documents\PythonProjects\VelocityGuide\mainISIN2RIC.py", line 47, in <module>
response = symbol_conversion.Definition("MSFT.O").get_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\refinitiv\data\content\_content_provider_layer.py", line 57, in get_data
return super().get_data(session, on_response)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\refinitiv\data\delivery\_data\_data_provider_layer.py", line 148, in get_data
response = get_data(self._data_type, self._provider, session, **self._kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\refinitiv\data\delivery\_data\_data_provider_layer.py", line 50, in get_data
response = provider.get_data(session, url, auto_retry=auto_retry, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\refinitiv\data\delivery\_data\_data_provider.py", line 85, in get_data
raw_response = self.connection.send(request, session, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\refinitiv\data\delivery\_data\_connection.py", line 14, in send
return session.http_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\refinitiv\data\_core\session\_platform_session.py", line 235, in http_request
return self._connection.http_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\refinitiv\data\_core\session\connection.py", line 287, in http_request
raise PlatformSessionError(
refinitiv.data._errors.PlatformSessionError: Error code -1 | Error!!! Platform session cannot connect to refinitiv dataplatform. Please check or provide the access right.
Process finished with exit code 1