...to be random.
If I run
import eikon as ek
then run
ek.set_app_key('xxxxxxx') t
then run
data = ek.get_timeseries(['.SPXTR'], fields='CLOSE', start_date='2020-02-12', end_date='2021-02-08', interval='daily')
It works, most of the time. However, if I run it all in one scrip it will hang without giving an error and I have to restart spyder. This can't be by design so what can I do to fix this? Thanks.