Skip to main content

Download market data from Yahoo! Finance's API

Python version PyPi version PyPi status PyPi downloads Star this repo Follow me on twitter

ranaroussi%2Fyfinance | Trendshift

yfinance offers a Pythonic way to fetch financial & market data from Yahoo!Ⓡ finance.




Main components

  • Ticker: single ticker data
  • Tickers: multiple tickers' data
  • download: download market data for multiple tickers
  • Market: get information about a market
  • WebSocket and AsyncWebSocket: live streaming data
  • Search: quotes and news from search
  • Sector and Industry: sector and industry information
  • EquityQuery and Screener: build query to screen market

Installation

Install yfinance from PYPI using pip:

$ pip install yfinance

To install without curl_cffi for requests fallback, see Advanced ▸ Installation.

yfinance relies on the community to investigate bugs and contribute code. Here's how you can help.


Star History Chart


yfinance is distributed under the Apache Software License. See the LICENSE.txt file in the release for details.

AGAIN - 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. You should refer to Yahoo!'s terms of use (here, here, and here) for details on your rights to use the actual data downloaded.


P.S.

Please drop me a note with any feedback you have.

Ran Aroussi

Metadata

Release files for yfinance 1.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yfinance 1.8.0
File Size Uploaded Provenance Actions
yfinance-1.8.0.tar.gz 202.2 kB Without provenance Details for yfinance-1.8.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for yfinance 1.8.0
File Interpreter ABI Platform Actions
yfinance-1.8.0-py3-none-any.whl Python 3 none any Details for yfinance-1.8.0-py3-none-any.whl

Total release size: 360.5 kB

Release files / yfinance-1.8.0.tar.gz

Download URL yfinance-1.8.0.tar.gz
Size 202.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ae8a00299de61e34e724c8a9c409028508fb999ec5ff526b4382d9011f8e922a
BLAKE2b-256 checksum
How to use checksums
eda4160521cfa7a60dd0fedefaf0adb08674be8afa28113ecfe2d52b5bc50259
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.1

Release files / yfinance-1.8.0-py3-none-any.whl

Download URL yfinance-1.8.0-py3-none-any.whl
Size 158.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f148b6db4151389625f2da5b07b4c067144fbb4d0537d0de19699c447f4405d5
BLAKE2b-256 checksum
How to use checksums
de22344a945022d17f255a7a076b1e04438f43aaefd83edc6250b6ec9f17c071
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.1

Security for yfinance 1.8.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.8.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page