All Projects → dpguthrie → Yahooquery

dpguthrie / Yahooquery

Licence: mit
Python wrapper for an unofficial Yahoo Finance API

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Yahooquery

Iex Api
The IEX API provides any individual or academic, public or private institution looking to develop applications that require stock market data to access near real-time quote and trade data for all stocks trading on IEX.
Stars: ✭ 683 (+137.15%)
Mutual labels:  api, finance, stock-market, market-data
Finance Go
📊 Financial markets data library implemented in go.
Stars: ✭ 392 (+36.11%)
Mutual labels:  pandas, finance, stock-market, stock-data
Tushare
TuShare is a utility for crawling historical data of China stocks
Stars: ✭ 11,288 (+3819.44%)
Mutual labels:  pandas, finance, stock-market, stock-data
intrinio-realtime-java-sdk
Intrinio Java SDK for Real-Time Stock Prices
Stars: ✭ 22 (-92.36%)
Mutual labels:  stock-market, market-data, stock-data
Tosdatabridge
A collection of resources for pulling real-time streaming data off of TDAmeritrade's ThinkOrSwim(TOS) platform; providing C, C++, Java and Python interfaces.
Stars: ✭ 229 (-20.49%)
Mutual labels:  api, finance, market-data
Stocks.js
💰 stocks.js is an easy-to-use stock market API for Javascript
Stars: ✭ 240 (-16.67%)
Mutual labels:  api, stock-market, stock-data
Alpha vantage
A python wrapper for Alpha Vantage API for financial data.
Stars: ✭ 3,553 (+1133.68%)
Mutual labels:  api-wrapper, pandas, finance
mftool
Python library for getting real-time Mutual Funds data in India
Stars: ✭ 76 (-73.61%)
Mutual labels:  stock-market, market-data, stock-data
pyEX
Python interface to IEX and IEX cloud APIs
Stars: ✭ 407 (+41.32%)
Mutual labels:  finance, stock-market, stock-data
robinhood.tools
📈🤑💰 Advanced trading tools and resources for Robinhood Web.
Stars: ✭ 27 (-90.62%)
Mutual labels:  stock-market, market-data, stock-data
pinance
Python module(s) to get stock data, options data and news.
Stars: ✭ 70 (-75.69%)
Mutual labels:  finance, market-data, stock-data
Coingecko Api
A Node.js wrapper for the CoinGecko API with no dependencies.
Stars: ✭ 159 (-44.79%)
Mutual labels:  api, api-wrapper, market-data
Iextrading4j
IEX Cloud open source API wrapper
Stars: ✭ 112 (-61.11%)
Mutual labels:  api, finance, market-data
GoPlan-app
An intuitive portfolio mangaer !
Stars: ✭ 27 (-90.62%)
Mutual labels:  finance, stock-market, stock-data
intrinio-realtime-python-sdk
Intrinio Python SDK for Real-Time Stock Prices
Stars: ✭ 79 (-72.57%)
Mutual labels:  stock-market, market-data, stock-data
AIPortfolio
Use AI to generate a optimized stock portfolio
Stars: ✭ 28 (-90.28%)
Mutual labels:  finance, pandas, stock-market
IQFeed.CSharpApiClient
IQFeed.CSharpApiClient is fastest and the most well-designed C# DTN IQFeed socket API connector available
Stars: ✭ 103 (-64.24%)
Mutual labels:  stock-market, market-data, stock-data
Finance-Robinhood
Trade stocks and ETFs with free brokerage Robinhood and Perl
Stars: ✭ 42 (-85.42%)
Mutual labels:  finance, stock-market, api-wrapper
Pandas Datareader
Extract data from a wide range of Internet sources into a pandas DataFrame.
Stars: ✭ 2,183 (+657.99%)
Mutual labels:  pandas, finance, stock-data
Finance
Here you can find all the quantitative finance algorithms that I've worked on and refined over the past year!
Stars: ✭ 194 (-32.64%)
Mutual labels:  pandas, finance, stock-market

Python wrapper for an unofficial Yahoo Finance API

Build Status Coverage Package version Downloads


Documentation: https://yahooquery.dpguthrie.com

Interactive Demo: https://yahooquery-streamlit.herokuapp.com

Source Code: https://github.com/dpguthrie/yahooquery

Blog Post: https://towardsdatascience.com/the-unofficial-yahoo-finance-api-32dcf5d53df


Overview

Yahooquery is a python interface to unofficial Yahoo Finance API endpoints. The package allows a user to retrieve nearly all the data visible via the Yahoo Finance front-end.

Some features of yahooquery:

  • Fast: Data is retrieved through API endpoints instead of web scraping. Additionally, asynchronous requests can be utilized with simple configuration
  • Simple: Data for multiple symbols can be retrieved with simple one-liners
  • User-friendly: Pandas Dataframes are utilized where appropriate
  • Premium: Yahoo Finance premium subscribers are able to retrieve data available through their subscription

Requirements

Python 2.7, 3.5+

  • Pandas - Fast, powerful, flexible and easy to use open source data analysis and manipulation tool
  • Requests - The elegant and simple HTTP library for Python, built for human beings.
  • Requests-Futures - Asynchronous Python HTTP Requests for Humans

Yahoo Finance Premium Subscribers

  • Selenium - Web browser automation

    Selenium is only utilized to login to Yahoo, which is done when the user passes certain keyword arguments. Logging into Yahoo enables users who are subscribers to Yahoo Finance Premium to retrieve data only accessible to premium subscribers.

Installation

If you're a Yahoo Finance premium subscriber and would like to retrieve data available through your subscription, do the following:

pip install yahooquery[premium]

Otherwise, omit the premium argument:

pip install yahooquery

Example

The majority of the data available through the unofficial Yahoo Finance API is related to a company, which is represented in yahooquery as a Ticker. You can instantiate the Ticker class by passing the company's ticker symbol. For instance, to get data for Apple, Inc., pass aapl as the first argument to the Ticker class:

from yahooquery import Ticker

aapl = Ticker('aapl')

aapl.summary_detail

Multiple Symbol Example

The Ticker class also makes it easy to retrieve data for a list of symbols with the same API. Simply pass a list of symbols as the argument to the Ticker class.

from yahooquery import Ticker

symbols = ['fb', 'aapl', 'amzn', 'nflx', 'goog']

faang = Ticker(symbols)

faang.summary_detail

License

This project is licensed under the terms of the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].