I'm using refinitiv lib in python like this:
import refinitiv.data as rd
rd.get_data(universe=self._stocks,fields=["TR.HIGHPrice","TR.OPENPrice",
"TR.CLOSEPrice","TR.LOWPrice","TR.CLOSEPRICE.DATE","TR.ACCUMULATEDVOLUME",
"TR.NUMBEROFBLOCKTRADES","TR.TSVWAP"],
parameters={'SDate':self._start.strftime("%Y-%m-%d"), 'EDate':self._end.strftime("%Y-%m-%d")}
)
In a loop that gets data for multiple RICs, after a certain time I start getting this error:
Error code -1 | token expired
The lib never asks me for a token, so I don't know how to deal with this error