Skip to main content

A package to get stock data from Yahoo Finance

Project description

Documentation Status

Publish Python Package to PyPI PyPI version Code style: black Code style: isort

Stockdex

Stockdex is a Python package that provides a simple interface to access financial data from Yahoo Finance. Data is returned as a pandas DataFrame.

Check out sphinx documentation here for more information about the package.

Installation

Install the package using pip:

pip install stockdex

Usage

Create a Ticker object by passing the ticker symbol of the stock you want to access. Then, you can access the following data:

from stockdex import Ticker

# Pick arbitrary ticker
ticker = Ticker('AAPL')

Summary data:

summary = ticker.summary

Historical data:

statistics = ticker.statistics

Financial data:

income_stmt = ticker.income_stmt
balance_sheet = ticker.balance_sheet
cash_flow = ticker.cash_flow

Analyst data:

analysis = ticker.analysis

Option data:

calls = ticker.calls
puts = ticker.puts

Profile data:

key_executives = ticker.key_executives
description = ticker.description
corporate_governance = ticker.corporate_governance

Holders data:

major_holders = ticker.major_holders
top_institutional_holders = ticker.top_institutional_holders
top_mutual_fund_holders = ticker.top_mutual_fund_holders

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stockdex-0.2.9.tar.gz (5.9 kB view hashes)

Uploaded Source

Built Distribution

stockdex-0.2.9-py3-none-any.whl (6.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page