question

Upvotes
1 0 1 2

How to accurately get data between your customised periods specified

Hi everyone,

One thing that I am confused with regarding get_data_async, is that, depending on the datapoints I try and retrieve, I can't seem to get data within the scope of years that I specify. Say I have this for example:

 current_year = datetime.today().year
    start_year = current_year - 8
    async with semaphore:  # Controls the number of concurrent tasks
        global progress_counter
        try:
            # Retrieve data asynchronously for the given RIC
            response = await content.fundamental_and_reference.Definition(
                universe=[f'{ric}'],
                fields=specific_fields,
                parameters={"SDate": f"{start_year + 1}-01-01", "EDate": f"{current_year}-12-31", "Frq": "Y"}

For datapoints like EBIT and Total Cap, (assuming the start year is 2016 and the end year is 2024), I am getting data for only 2015 to 2022. And I have seen this inconsistency across different datapoints as well. Why is this happening, and what is the cause?


Thanks!

#contenthistoricalrdpfundamental-dataasynchronous
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

@vishal.nanwani

Please provide the concrete examples, such as RICs, fields, parameters, and outputs. Therefore, we can verify what the problem is.

Are you using the desktop or RDP session?

1 Answer

· Write an Answer
Upvotes
10.8k 21 6 9

@vishal.nanwani does this work for you:

response = fundamental_and_reference.Definition(
                universe=['VOD.L'],
                fields=['TR.F.IncAvailToComShr.date', 'TR.F.IncAvailToComShr'],
                parameters={"SDate": "2018-01-01", "EDate": "2023-12-31", "Frq": "CY"}
).get_data()
response.data.df

1725961537738.png

I hope this can help.


1725961537738.png (60.1 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.