yfinance

Download market data from Yahoo! Finance API

Apache 146 个版本
Ran Aroussi <ran@aroussi.com>
安装
pip install yfinance
poetry add yfinance
pipenv install yfinance
conda install yfinance
描述

Download market data from Yahoo! Finance's API

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

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


[!IMPORTANT]
Yahoo!, Y!Finance, and Yahoo! finance are registered trademarks of Yahoo, Inc.

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.

Remember - the Yahoo! finance API is intended for personal use only.**


[!TIP] THE NEW DOCUMENTATION WEBSITE IS NOW LIVE! 🤘

Visit ranaroussi.github.io/yfinance


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

版本列表
1.4.1 2026-05-28
1.4.0 2026-05-23
1.3.0 2026-04-16
1.2.2 2026-04-13
1.2.1 2026-04-07
1.2.0 2026-02-16
1.1.0 2026-01-24
1.0 2025-12-22
0.2.66 2025-09-17
0.2.65 2025-07-06
0.2.64 2025-06-27
0.2.63 2025-06-12
0.2.62 2025-06-08
0.2.61 2025-05-12
0.2.60 2025-05-11
0.2.59 2025-05-07
0.2.58 2025-05-02
0.2.57 2025-04-28
0.2.56 2025-04-23
0.2.55 2025-03-20
0.2.54 2025-02-18
0.2.53 2025-02-15
0.2.52 2025-01-18
0.2.51 2024-12-19
0.2.50 2024-11-19
0.2.49 2024-11-10
0.2.48 2024-10-25
0.2.47 2024-10-25
0.2.46 2024-10-21
0.2.45 2024-10-20
0.2.44 2024-09-30
0.2.43 2024-08-24
0.2.42 2024-08-22
0.2.41 2024-07-19
0.2.40 2024-05-19
0.2.39 2024-05-19
0.2.38 2024-04-16
0.2.37 2024-02-25
0.2.36 2024-01-21
0.2.35 2024-01-07
0.2.34 2024-01-06
0.2.33 2023-12-06
0.2.32 2023-11-18
0.2.31 2023-10-04
0.2.30 2023-09-24
0.2.29 2023-09-22
0.2.28 2023-08-13
0.2.27 2023-08-03
0.2.26 2023-07-21
0.2.25 2023-07-18
0.2.24 2023-07-14
0.2.23 2023-07-13
0.2.22 2023-06-24
0.2.21 2023-06-21
0.2.20 2023-06-07
0.2.19 2023-06-07
0.2.18 2023-04-16
0.2.17 2023-04-10
0.2.16 2023-04-09
0.2.15 2023-04-09
0.2.14 2023-03-25
0.2.13 2023-03-21
0.2.12 2023-02-16
0.2.11 2023-02-10
0.2.10 2023-02-07
0.2.9 2023-01-26
0.2.7 2023-01-26
0.2.6 2023-01-25
0.2.5 2023-01-25
0.2.4 2023-01-14
0.2.3 2022-12-20
0.2.2 2022-12-20
0.2.1 2022-12-19
0.2.31b2 2023-10-01
0.2.31b1 2023-10-01
0.2.25b1 2023-07-14
0.2.19b4 2023-05-25
0.2.19b3 2023-05-11
0.2.19b1 2023-05-04
0.2.13b1 2023-02-17
0.2.10b3 2023-02-07
0.2.10b2 2023-02-01
0.2.10b1 2023-01-31
0.2.0rc5 2022-12-16
0.2.0rc4 2022-12-13
0.2.0rc2 2022-11-12
0.2.0rc1 2022-10-26
0.1.96 2022-12-20
0.1.95 2022-12-19
0.1.94 2022-12-19
0.1.93 2022-12-18
0.1.92 2022-12-18
0.1.91 2022-12-18
0.1.90 2022-12-13
0.1.89 2022-12-12
0.1.87 2022-11-16
0.1.86 2022-11-14
0.1.85 2022-11-03
0.1.84 2022-10-25
0.1.83 2022-10-25
0.1.82 2022-10-25
0.1.81 2022-10-23
0.1.80 2022-10-22
0.1.79 2022-10-18
0.1.78 2022-10-18
0.1.77 2022-10-07
0.1.75 2022-10-04
0.1.74 2022-07-11
0.1.73 2022-07-11
0.1.72 2022-06-16
0.1.71 2022-06-16
0.1.70 2022-01-30
0.1.69 2022-01-12
0.1.68 2021-12-30
0.1.67 2021-11-20
0.1.66 2021-11-13
0.1.65 2021-11-13
0.1.64 2021-10-19
0.1.63 2021-07-10
0.1.62 2021-07-09
0.1.61 2021-07-08
0.1.60 2021-07-03
0.1.59 2021-03-25
0.1.58 2021-03-25
0.1.57 2021-03-24
0.1.56 2021-03-24
0.1.55 2020-10-05
0.1.54 2019-12-27
0.1.53 2019-12-27
0.1.52 2019-12-04
0.1.51 2019-12-04
0.1.50 2019-11-10
0.1.49 2019-10-29
0.1.48 2019-10-29
0.1.47 2019-10-27
0.1.46 2019-10-27
0.1.45 2019-08-26
0.1.44 2019-08-02
0.1.43 2019-06-21
0.1.42 2019-06-04
0.1.41 2019-05-31
0.1.40 2019-05-31
0.1.39 2019-05-29
0.1.38 2019-05-27
0.1.37 2019-05-26
0.1.36 2019-05-26