...ng errors.
Everything is being done in the Refinitiv Codebook through Jupyter Notebooks
Code:
import eikon
eikon.get_data(['US0378331005','US345370CS72','F5YUSAX=R', '.SPX'],
['TR.AssetCategoryCode','TR.AssetCategory'])
Error:
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/tmp/ipykernel_107/42610158.py in <module>
1 import eikon
----> 2 eikon.get_data(['US0378331005','US345370CS72','F5YUSAX=R', '.SPX'],
3 ['TR.AssetCategoryCode','TR.AssetCategory'])
/opt/conda/lib/python3.8/site-packages/eikon/data_grid.py in get_data(instruments, fields, parameters, field_name, raw_output, debug)
188 payload = {'requests': [payload]}
189 --> 190 result = eikon.json_requests.send_json_request(_endpoint, payload, debug=debug)
191 192 if result.get('responses'):
/opt/conda/lib/python3.8/site-packages/eikon/json_requests.py in send_json_request(entity, payload, debug)
86 udf_request = {'Entity': {'E': entity, 'W': data} }
87 logger.debug('Request:{}'.format(udf_request))
---> 88 response = profile._desktop_session.http_request(url=profile.get_url(),
89 method="POST",
90 headers={'Content-Type': 'application/json',
AttributeError: 'NoneType' object has no attribute 'http_request'