• Stars
    star
    431
  • Rank 100,235 (Top 2 %)
  • Language
    Jupyter Notebook
  • License
    MIT License
  • Created about 4 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Finviz analysis python library.

PyPI - Python Version PyPI PyPI - Wheel PyPI - License Coverage Status Travis (.org) Read the Docs Downloads CodeFactor Donate PayPal Code style: black

finvizfinance

finvizfinance is a package which collects financial information from FinViz website. The package provides the information of the following:

  • Stock charts, fundamental & technical information, insider information and stock news
  • Forex charts and performance
  • Crypto charts and performance

Screener and Group provide dataframes for comparing stocks according to different filters and trading signals.

Docs: https://finvizfinance.readthedocs.io/en/latest/

Downloads

To download the latest version from GitHub:

$ git clone https://github.com/lit26/finvizfinance.git

Or install from PyPi:

$ pip install finvizfinance

Quote

Getting information (fundament, description, outer rating, stock news, inside trader) of an individual stock.

from finvizfinance.quote import finvizfinance

stock = finvizfinance('tsla')

Chart

stock.ticker_charts()

Fundament

stock_fundament = stock.ticker_fundament()

# result
# stock_fundament = {'Company': 'Tesla, Inc.', 'Sector': 'Consumer Cyclical', 
# 'Industry': 'Auto Manufacturers', 'Country': 'USA', 'Index': '-', 'P/E': '849.57', 
# 'EPS (ttm)': '1.94', 'Insider Own': '0.10%', 'Shs Outstand': '186.00M', 
# 'Perf Week': '13.63%', 'Market Cap': '302.10B', 'Forward P/E': '106.17',
# ...}

Description

stock_description = stock.ticker_description()

# stock_description
# stock_description = 'Tesla, Inc. designs, develops, manufactures, ...'

Outer Ratings

outer_ratings_df = stock.ticker_outer_ratings()

Outer Ratings example

Stock News

news_df = stock.ticker_news()

stock news example

Inside Trader

inside_trader_df = stock.ticker_inside_trader()

insider trader example

News

Getting recent financial news from finviz.

from finvizfinance.news import News

fnews = News()
all_news = fnews.get_news()

Finviz News include 'news' and 'blogs'.

all_news['news'].head()

news example

all_news['blogs'].head()

news example

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.get_insider()

insider example

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=filters_dict)
df = foverview.screener_view()
df.head()

insider example

Screener (Ticker)

Getting list of tickers according to the filters.

Credit

Developed by Tianning Li. Feel free to give comments or suggestions.

More Repositories

1

streamlit-img-label

streamlit-img-label is a graphical image annotation tool using streamlit. Annotations are saved as XML files in PASCAL VOC format.
Python
119
star
2

Stock_Screener

Full Stack Stock Screener for fundamental and technical analysis
JavaScript
20
star
3

Ark_Trade_Tracker

A platform for tracking ark investment. Warning: no longer update from 2021/12/31. Demo purpose only.
JavaScript
7
star
4

Ark_Trade

Tracking the transaction of Ark Investing. Warning: no longer update from 2021/12/30
Python
6
star
5

Option_Warning

Reward and risk management for option trading
JavaScript
6
star
6

Stock_Market_App

Full Stack web develop.
JavaScript
4
star
7

Market_Watch

A full-stack platform that tracks personal stock and option trading
JavaScript
3
star
8

Stock_News_Sentiment_Analysis

Jupyter Notebook
2
star
9

AlgoAnalyzer

Backtesting strategies platform
TypeScript
2
star
10

streamlit-webscrap-tool

Web scraping tool for visualizing the elements and the HTML code
Python
2
star
11

yahoofinance-api

python flask api for fetching history and intraday data from yafoo finance.
Python
1
star
12

Tweet_Analysis_COVID-19

Tweet Analysis on COVID-19
Jupyter Notebook
1
star
13

COVID19_Dashboard

COVID19 Data Visualization Dashboard
JavaScript
1
star
14

Personal_Market_Watch

A full-stack platform that tracks personal stock and option trading
JavaScript
1
star
15

StrategyTesting

Testing Stock Indicators
Jupyter Notebook
1
star
16

MoneySpendTracker

Tracker the money spend of your Bank of America credit card account
Python
1
star
17

Trump_Tweet_Analysis

Analysis of Trump's original tweets.
Jupyter Notebook
1
star
18

IntradayStockTechnicalAnalysis

Intraday stock technical analysis
Python
1
star
19

bokeh_fin

Plot financial charts using bokeh
Python
1
star