{"id":13449005,"url":"https://github.com/ranaroussi/yfinance","last_synced_at":"2026-04-07T20:01:32.838Z","repository":{"id":37306511,"uuid":"91948540","full_name":"ranaroussi/yfinance","owner":"ranaroussi","description":"Download market data from Yahoo! Finance's API","archived":false,"fork":false,"pushed_at":"2026-04-03T14:01:08.000Z","size":8101,"stargazers_count":22695,"open_issues_count":156,"forks_count":3151,"subscribers_count":268,"default_branch":"main","last_synced_at":"2026-04-06T18:32:33.099Z","etag":null,"topics":["financial-data","fix-yahoo-finance","market-data","pandas","python","stock-data","yahoo-finance","yahoo-finance-api"],"latest_commit_sha":null,"homepage":"https://ranaroussi.github.io/yfinance","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ranaroussi.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.rst","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"patreon":"ranaroussi","custom":["https://paypal.me/ranaroussi"]}},"created_at":"2017-05-21T10:16:15.000Z","updated_at":"2026-04-06T18:09:26.000Z","dependencies_parsed_at":"2023-10-05T03:59:42.016Z","dependency_job_id":"fe1187e8-68f3-4456-8d07-217b7dec4a21","html_url":"https://github.com/ranaroussi/yfinance","commit_stats":{"total_commits":671,"total_committers":84,"mean_commits":7.988095238095238,"dds":0.6408345752608048,"last_synced_commit":"d30a2a0915b340e46929cdb91da9196799a50c5e"},"previous_names":["ranaroussi/fix-yahoo-finance"],"tags_count":120,"template":false,"template_full_name":null,"purl":"pkg:github/ranaroussi/yfinance","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranaroussi%2Fyfinance","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranaroussi%2Fyfinance/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranaroussi%2Fyfinance/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranaroussi%2Fyfinance/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ranaroussi","download_url":"https://codeload.github.com/ranaroussi/yfinance/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ranaroussi%2Fyfinance/sbom","scorecard":{"id":761112,"data":{"date":"2025-08-11","repo":{"name":"github.com/ranaroussi/yfinance","commit":"ea4dc2d22ae47a84e38f969c509a78fb3ed59cc8"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/14 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":10,"reason":"30 commit(s) and 22 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/auto_close_default_issues.yml:1","Warn: no topLevel permission defined: .github/workflows/deploy_doc.yml:1","Warn: no topLevel permission defined: .github/workflows/pyright.yml:1","Warn: no topLevel permission defined: .github/workflows/python-publish.yml:1","Warn: no topLevel permission defined: .github/workflows/ruff.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/auto_close_default_issues.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/ranaroussi/yfinance/auto_close_default_issues.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/deploy_doc.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/ranaroussi/yfinance/deploy_doc.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/deploy_doc.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/ranaroussi/yfinance/deploy_doc.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/deploy_doc.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/ranaroussi/yfinance/deploy_doc.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pyright.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/ranaroussi/yfinance/pyright.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pyright.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/ranaroussi/yfinance/pyright.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-publish.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/ranaroussi/yfinance/python-publish.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-publish.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/ranaroussi/yfinance/python-publish.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ruff.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/ranaroussi/yfinance/ruff.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ruff.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/ranaroussi/yfinance/ruff.yml/main?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/deploy_doc.yml:25","Warn: pipCommand not pinned by hash: .github/workflows/deploy_doc.yml:26","Warn: pipCommand not pinned by hash: .github/workflows/deploy_doc.yml:27","Warn: pipCommand not pinned by hash: .github/workflows/pyright.yml:23","Warn: pipCommand not pinned by hash: .github/workflows/pyright.yml:24","Warn: pipCommand not pinned by hash: .github/workflows/python-publish.yml:23","Warn: pipCommand not pinned by hash: .github/workflows/python-publish.yml:24","Info:   0 out of   8 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned","Info:   0 out of   7 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"10 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2021-856 / GHSA-5545-2q6w-2gh6","Warn: Project is vulnerable to: GHSA-6p56-wp2h-9hxr","Warn: Project is vulnerable to: PYSEC-2021-857 / GHSA-f7c7-j99h-c22f","Warn: Project is vulnerable to: GHSA-fpfv-jqm9-f5jm","Warn: Project is vulnerable to: GHSA-8gq9-2x98-w8hf","Warn: Project is vulnerable to: GHSA-8qvm-5x2c-j2w7","Warn: Project is vulnerable to: GHSA-9hjg-9r4m-mvj7","Warn: Project is vulnerable to: GHSA-9wx4-h78v-vm56","Warn: Project is vulnerable to: PYSEC-2023-102","Warn: Project is vulnerable to: PYSEC-2023-114"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-22T23:32:07.834Z","repository_id":37306511,"created_at":"2025-08-22T23:32:07.834Z","updated_at":"2025-08-22T23:32:07.834Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31526666,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T16:28:08.000Z","status":"ssl_error","status_checked_at":"2026-04-07T16:28:06.951Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["financial-data","fix-yahoo-finance","market-data","pandas","python","stock-data","yahoo-finance","yahoo-finance-api"],"created_at":"2024-07-31T06:00:28.281Z","updated_at":"2026-04-07T20:01:32.743Z","avatar_url":"https://github.com/ranaroussi.png","language":"Python","funding_links":["https://patreon.com/ranaroussi","https://paypal.me/ranaroussi"],"categories":["Data Sources","Python","Data Source","金融数据处理","Financial Big Data","金融股票","Curated List","Libraries \u0026 SDKs","Open Data Tools","Python：量化金融第一生态","金融数据","Downloader","⚙️ Backend \u0026 APIs","精选文章","Data and Feeds"],"sub_categories":["General","Stocks and General","Data Source","Data Sources","网络服务_其他","Data Libraries","Python","七、数据来源：行情与基本面数据","AI金融与量化投资"],"readme":"\u003cimg src=\"./doc/yfinance-gh-logo-dark.webp#gh-dark-mode-only\" height=\"100\"\u003e\n\u003cimg src=\"./doc/yfinance-gh-logo-light.webp#gh-light-mode-only\" height=\"100\"\u003e\n\n# Download market data from Yahoo! Finance's API\n\n\u003ca target=\"new\" href=\"https://pypi.python.org/pypi/yfinance\"\u003e\u003cimg border=0 src=\"https://img.shields.io/badge/python-2.7,%203.6+-blue.svg?style=flat\" alt=\"Python version\"\u003e\u003c/a\u003e\n\u003ca target=\"new\" href=\"https://pypi.python.org/pypi/yfinance\"\u003e\u003cimg border=0 src=\"https://img.shields.io/pypi/v/yfinance.svg?maxAge=60%\" alt=\"PyPi version\"\u003e\u003c/a\u003e\n\u003ca target=\"new\" href=\"https://pypi.python.org/pypi/yfinance\"\u003e\u003cimg border=0 src=\"https://img.shields.io/pypi/status/yfinance.svg?maxAge=60\" alt=\"PyPi status\"\u003e\u003c/a\u003e\n\u003ca target=\"new\" href=\"https://pypi.python.org/pypi/yfinance\"\u003e\u003cimg border=0 src=\"https://img.shields.io/pypi/dm/yfinance.svg?maxAge=86400\u0026label=installs\u0026color=%2327B1FF\" alt=\"PyPi downloads\"\u003e\u003c/a\u003e\n\u003ca target=\"new\" href=\"https://github.com/ranaroussi/yfinance\"\u003e\u003cimg border=0 src=\"https://img.shields.io/github/stars/ranaroussi/yfinance.svg?style=social\u0026label=Star\u0026maxAge=60\" alt=\"Star this repo\"\u003e\u003c/a\u003e\n\u003ca target=\"new\" href=\"https://x.com/intent/follow?screen_name=aroussi\"\u003e\u003cimg border=0 src=\"https://img.shields.io/twitter/follow/aroussi.svg?style=social\u0026label=Follow\u0026maxAge=60\" alt=\"Follow me on twitter\"\u003e\u003c/a\u003e\n\n\u003ca href=\"https://trendshift.io/repositories/4578\" target=\"_blank\"\u003e\u003cimg src=\"https://trendshift.io/api/badge/repositories/4578\" alt=\"ranaroussi%2Fyfinance | Trendshift\" style=\"width: 250px; height: 55px;\" width=\"250\" height=\"55\"/\u003e\u003c/a\u003e\n\n**yfinance** offers a Pythonic way to fetch financial \u0026 market data from [Yahoo!Ⓡ finance](https://finance.yahoo.com).\n\n---\n\n\u003e [!IMPORTANT]  \n\u003e **Yahoo!, Y!Finance, and Yahoo! finance are registered trademarks of Yahoo, Inc.**\n\u003e\n\u003e yfinance is **not** affiliated, endorsed, or vetted by Yahoo, Inc. It's an open-source tool that uses Yahoo's publicly available APIs, and is intended for research and educational purposes.\n\u003e \n\u003e **You should refer to Yahoo!'s terms of use** ([here](https://policies.yahoo.com/us/en/yahoo/terms/product-atos/apiforydn/index.htm), [here](https://legal.yahoo.com/us/en/yahoo/terms/otos/index.html), and [here](https://policies.yahoo.com/us/en/yahoo/terms/index.htm)) **for details on your rights to use the actual data downloaded.\n\u003e\n\u003e Remember - the Yahoo! finance API is intended for personal use only.**\n\n---\n\n\u003e [!TIP]\n\u003e THE NEW DOCUMENTATION WEBSITE IS NOW LIVE! 🤘\n\u003e \n\u003e Visit [**ranaroussi.github.io/yfinance**](https://ranaroussi.github.io/yfinance)\n\n---\n\n## Main components\n\n- `Ticker`: single ticker data\n- `Tickers`: multiple tickers' data\n- `download`: download market data for multiple tickers\n- `Market`: get information about a market\n- `WebSocket` and `AsyncWebSocket`: live streaming data\n- `Search`: quotes and news from search\n- `Sector` and `Industry`: sector and industry information\n- `EquityQuery` and `Screener`: build query to screen market\n\n## Installation\n\nInstall `yfinance` from PYPI using `pip`:\n\n``` {.sourceCode .bash}\n$ pip install yfinance\n```\n\n### [yfinance relies on the community to investigate bugs and contribute code. Here's how you can help.](https://github.com/ranaroussi/yfinance/blob/main/CONTRIBUTING.md)\n\n---\n\n![Star History Chart](https://api.star-history.com/svg?repos=ranaroussi/yfinance)\n\n---\n\n### Legal Stuff\n\n**yfinance** is distributed under the **Apache Software License**. See\nthe [LICENSE.txt](https://github.com/ranaroussi/yfinance/blob/main/LICENSE.txt) file in the release for details.\n\nAGAIN - yfinance is **not** affiliated, endorsed, or vetted by Yahoo, Inc. It's\nan open-source tool that uses Yahoo's publicly available APIs, and is\nintended for research and educational purposes. You should refer to Yahoo!'s terms of use\n([here](https://policies.yahoo.com/us/en/yahoo/terms/product-atos/apiforydn/index.htm),\n[here](https://legal.yahoo.com/us/en/yahoo/terms/otos/index.html), and\n[here](https://policies.yahoo.com/us/en/yahoo/terms/index.htm)) for\ndetails on your rights to use the actual data downloaded.\n\n---\n\n### P.S.\n\nPlease drop me a note with any feedback you have.\n\n**Ran Aroussi**\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Franaroussi%2Fyfinance","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Franaroussi%2Fyfinance","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Franaroussi%2Fyfinance/lists"}