SimFin / simfin

Simple financial data for Python
https://simfin.com/
Other
299 stars 39 forks source link

Data Error #11

Closed 3coCCoo3 closed 2 years ago

3coCCoo3 commented 2 years ago

Hi, why the latest quartely data dose not show? I installed Simfin - 0.8.4 and tried Python API call the quaterly data for below stock. However, it did not show the Quarterly report for quarter ending October 1, 2021.

Ticker : ON (ON SEMICONDUCTOR CORP)

Code Example

# Configure simfin.

sf.set_data_dir('~/simfin_data/') sf.set_api_key('***my API - Simfin+ User--')

# Download and load the dataset from the SimFin server.

try: df_IS_Q=sf.load_income(variant='quarterly-full', market='us', refresh_days=1) except sf.ServerException as e: print(e)

Show the data that has errors.

df_IS_Q.loc['ON'].tail()

Data Output

It did not show the Quarterly report for quarter ending October 1, 2021.

Report Date | SimFinId | Currency | Fiscal Year | Fiscal Period | Publish Date | Restated Date | Shares (Basic) 2020-06-30 | 136025 | USD | 2020 | Q2 | 2020-08-10 | 2021-08-02 | 410100000 2020-09-30 | 136025 | USD | 2020 | Q3 | 2020-11-02 | 2020-11-02 | 410800000 2020-12-31 | 136025 | USD | 2020 | Q4 | 2021-02-16 | 2021-05-03 | 411300000 2021-03-31 | 136025 | USD | 2021 | Q1 | 2021-05-03 | 2021-05-03 | 413400000 2021-06-30 | 136025 | USD | 2021 | Q2 | 2021-08-02 | 2021-08-02 | 413400000

Generic Test

We use an automatic test-suite to ensure the data is correct and reliable. You are very welcome to try and develop a generic test using the tools in tests/test_bulk_data.ipynb that can find all data errors of the type you are reporting. If you do so, then please write the code here. Instructions for running this automated data-test can be found in the project's README.

thf24 commented 2 years ago

Thanks for pointing that out. For some reason our crawler didn't pick up the Q3 report. We loaded the data now so it should be fixed in around 40 minutes when the new bulk files are ready (you should delete your data files then and reload them).