Hi everyone,
I have an issue regarding concurrency with functions using get_data(). My workflow is as such where I have multiple requests of get_data() and get_history() in different asyncrhonous functions that I am executing concurrently using Python's `asyncio` library. Now, the issue is, when these functions are executed individually (one at a time in their respective Jupyter Notebook cells), the respective data I want in get_data() gets retrieved. But it is when I run everything concurrently, where I face errors where some data cannot be retrieved. There is an RDError that gets thrown, and it'd look something like this:
RD.ERROR : Data cannot be retrieved for Instrument ['AAPL.O'] fields ['TR.ISIN','TR.FiExchange', 'TR.TRBCIndustry', 'TR.PCFullTimeEmployee', 'TR.CompanyMarketCapitalization', 'TR.BusinessSummary']
This is especially true for Income Statement, Earnings, Return, and Price Related Data.
I have taken some steps to troubleshoot this issue:
1. I have increased the asyncio.sleep() time, after every rd.get_data() / rd.get_history() invocation. I have been unsuccessful doing that
2. Double Checked the Individual notations for each of the datapoints that I am trying to pull (eg. TR.F.ComShrOutsTot / TR.PricePctChgYTD) in the desktop platform, to see if there was actually data behind them, and there was, so I can rule this out as a potential source of the error.
3. Tested the functions indiviudally, and there seems to be no issue with my syntax.
4. Tested my `asyncio` code (in which I am gathering a list of my function invocations as tasks, and awaiting their results while running concurrently), on another basic use case, which worked, so I can rule out the factor that my code is written wrongly.
This brings me to think that the reason for this issue is that, either Refinitiv's server is not able to handle all my requests I am making concurrently, or I have something wrong with my asynchronous code. I am using the `desktop.workspace` connection. I need some more light shed, and assistance on this issue, and any kind of response is welcome.
Thanks!