Finviz Finance. Information downloader.
Project description
finvizfinance
Fetch information from finviz
Quote
Getting information (fundament, description, outer rating, stock news, inside trader) of an individual stock.
import pandas as pd
from finvizfinance.quote import finvizfinance
stock = finvizfinance('tsla')
Chart
stock.TickerCharts()
Fundament
stock_fundament = stock.TickerFundament()
# result
# stock_fundament = {'Index': '-',
# 'P/E': '-',
# 'EPS (ttm)': '-0.87',
# 'Insider Own': '0.10%',
# 'Shs Outstand': '183.00M',
# 'Perf Week': '3.00%',
# 'Market Cap': '295.14B',
# 'Forward P/E': '135.32',
# 'EPS next Y': '131.09%',
# 'Insider Trans': '-33.47%',
# 'Shs Float': '147.41M',
# 'Perf Month': '60.14%',
# 'Income': '-144.30M',...}
Description
stock_description = stock.TickerDescription()
# stock_description
# stock_description = 'Tesla, Inc. designs, develops, manufactures, ...'
Outer Ratings
outer_ratings_df = stock.TickerOuterRatings()
Stock News
news_df = stock.TickerNews()
Inside Trader
inside_trader_df = stock.TickerInsideTrader()
News
Getting recent financial news from finviz.
from finvizfinance.news import finviznews
fnews = finviznews()
all_news = fnews.getNews()
Finviz News include 'news' and 'blogs'.
all_news['news'].head()
all_news['blogs'].head()
Insider
Getting insider trading information.
from finvizfinance.insider import Insider
finsider = Insider(option='top owner trade')
# option: latest, top week, top owner trade
# default: latest
insider_trader = finsider.getInsider()
Screener (Overview, Valuation, Financial, Ownership, Performance, Technical)
Getting multiple tickers' information according to the filters.
Example: Overview
from finvizfinance.screener.overview import Overview
foverview = Overview()
filters_dict = {'Index':'S&P 500','Sector':'Basic Materials'}
foverview.set_filter(filters_dict)
df = foverview.ScreenerView()
df.head()
Screener (Ticker)
Getting list of tickers according to the filters.
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
finvizfinance-0.1.4.tar.gz
(9.0 kB
view hashes)
Built Distribution
Close
Hashes for finvizfinance-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b611fdacd431536f9a1728bf9c1b4110a81c90ff4bb41bb317fda8ceeec3bed |
|
MD5 | b9002ff5d6113e9b2fb140144fa15096 |
|
BLAKE2b-256 | 967580287f3bf8e9cf1c5cec9d4bb27f8ac20f8a9da703275516f4b172fe2e08 |