A package to get stock data from Yahoo Finance
Project description
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.
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
Dividends data from Digrin
Webstite:
History of dividends paid by the company.
dividend = ticker.dividend
Check out sphinx documentation here for more information about the package.
Project details
Release history Release notifications | RSS feed
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.10.tar.gz
(6.1 kB
view hashes)
Built Distribution
Close
Hashes for stockdex-0.2.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6fbdb3c55b6f97eb7db5d0e8c6e6b375f802b70130ff9d12425b4fcde66ec92 |
|
MD5 | 75cede7f2d1a0c708de68b64ddf20163 |
|
BLAKE2b-256 | 002a169f2ecdb6ef6cf0c222fb5ad3eac66992465a548d0f5168459d629450f2 |