{"id":35236038,"url":"https://github.com/dharmatech/yfinance_download.py","last_synced_at":"2025-12-30T04:01:13.507Z","repository":{"id":213921619,"uuid":"735266184","full_name":"dharmatech/yfinance_download.py","owner":"dharmatech","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-24T09:16:01.000Z","size":7,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-19T18:08:20.356Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dharmatech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-12-24T09:27:56.000Z","updated_at":"2025-08-08T06:35:43.000Z","dependencies_parsed_at":"2023-12-24T10:25:55.285Z","dependency_job_id":null,"html_url":"https://github.com/dharmatech/yfinance_download.py","commit_stats":null,"previous_names":["dharmatech/yfinance_download.py"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dharmatech/yfinance_download.py","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dharmatech%2Fyfinance_download.py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dharmatech%2Fyfinance_download.py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dharmatech%2Fyfinance_download.py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dharmatech%2Fyfinance_download.py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dharmatech","download_url":"https://codeload.github.com/dharmatech/yfinance_download.py/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dharmatech%2Fyfinance_download.py/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28123585,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-30T02:00:05.476Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-12-30T04:00:31.761Z","updated_at":"2025-12-30T04:01:13.496Z","avatar_url":"https://github.com/dharmatech.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\nWith `yfinance`, if you do the following:\n\n```\nimport yfinance as yf\n\ndf = yf.download(tickers='^GSPC')\n```\n\nyou'll download all the data for the S\u0026P 500.\n\nLater on, if you repeat the same steps to get new data, it will download all data again.\n\nWith `yfinance_download`, all the data is only downloaded the first time. The data is serialized into a pkl file. Subsequent calls to download the data only request recent data (data since 2nd most recent date).\n\nAfter running the following:\n\n```\nimport yfinance_download\n\ndf = yfinance_download.update_records('^GSPC')\n```\n\nyou should have a file `pkl/^GSPC-1d.pkl` which stores the serialized data.\n\nTo select a `1mo` interval:\n\n```\ndf = yfinance_download.update_records('^GSPC', interval='1mo')\n```\n\nYou should then see a file `pkl/^GSPC-1mo.pkl`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdharmatech%2Fyfinance_download.py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdharmatech%2Fyfinance_download.py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdharmatech%2Fyfinance_download.py/lists"}