I am new to Refinitiv and its API. I am trying to download IBES and other fundamental data using Python. We are looking at some 300 tickers and downloading several factors such as Price to Book Value, PE etc.
We have looked at the documentation (not extensively) and the introductory videos and are using the prescribed methods. However we keep getting timed out we we download data. We either get "error 408" or "error 400", see below.
Can someone tell us a way around this issue. Maybe we are just doing it wrong. We are using Anaconda which has Python 3.7, the script is being run on Windows.
The error is below:
File "<ipython-input-86-11c53df5083c>", line 1, in <module>
runfile('C:/Python Scripts/Ref_m-master/temp.py', wdir='C:/Python Scripts/Ref_m-master')
File "C:\Anaconda\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 827, in runfile
File "C:\Anaconda\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 110, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)
File "C:/Python Scripts/Ref_m-master/temp.py", line 33, in <module>
data = ek.get_data(stock_list, fields=flds, parameters=params)
File "C:\Anaconda\lib\site-packages\eikon\data_grid.py", line 186, in get_data
result = eikon.json_requests.send_json_request(_endpoint, payload, debug=debug)
File "C:\Anaconda\lib\site-packages\eikon\json_requests.py", line 118, in send_json_request
File "C:\Anaconda\lib\site-packages\eikon\json_requests.py", line 194, in _check_server_error
raise EikonError(int(server_response['ErrorCode']), error_message)
EikonError: Error code 408 | Request timeout occured