Skip to content

joshbmair/yfinance-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Y!Finance API

The Y!Finance API provides what the official Yahoo! Finance API did until it was shut down. Using the Python libraries Flask and yfinance, Y!Finance API serves financial data from Yahoo! Finance.

How to run the app

  1. Use the virtual environment: python3 -m venv .venv
  2. Install the required dependencies: pip3 install -r requirements.txt
  3. Run the app: flask --app yfinance_api run

Endpoints

The endpoints serve JSON data about a specific stock ticker -- With the exception of /api/download, which responds with a CSV file. Each endpoint requires a ticker parameter. For example: http://127.0.0.1:5000/api/actions?ticker=MSFT.

Here are all the endpoints:

  • /api/actions
  • /api/balance-sheet
  • /api/cash-flow
  • /api/capital-gains
  • /api/dividends
  • /api/downloads
  • /api/fast-info
  • /api/financials
  • /api/history-metadata
  • /api/income-stmt
  • /api/info
  • /api/institutional-holders
  • /api/isin
  • /api/major-holders
  • /api/mutualfund-holders
  • /api/news
  • /api/splits

About

An API that serves data from Yahoo! Finance

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages