All Projects → knipknap → stocklist

knipknap / stocklist

Licence: MIT license
Stock data collection and analysis

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to stocklist

piker
#nontina, #paperhands,, #pwnzebotz, #tradezbyguille
Stars: ✭ 63 (+133.33%)
Mutual labels:  finance, trading, analytics, financial-analysis
Ta Rs
Technical analysis library for Rust language
Stars: ✭ 248 (+818.52%)
Mutual labels:  finance, trading, financial, trading-algorithms
Sequence-to-Sequence-Learning-of-Financial-Time-Series-in-Algorithmic-Trading
My bachelor's thesis—analyzing the application of LSTM-based RNNs on financial markets. 🤓
Stars: ✭ 64 (+137.04%)
Mutual labels:  finance, trading, trading-algorithms, financial-analysis
trading sim
📈📆 Backtest trading strategies concurrently using historical chart data from various financial exchanges.
Stars: ✭ 21 (-22.22%)
Mutual labels:  finance, trading, stock, financial-analysis
Turingtrader
The Open-Source Backtesting Engine/ Market Simulator by Bertram Solutions.
Stars: ✭ 132 (+388.89%)
Mutual labels:  finance, trading, trading-algorithms
Pandas Ta
Technical Analysis Indicators - Pandas TA is an easy to use Python 3 Pandas Extension with 130+ Indicators
Stars: ✭ 962 (+3462.96%)
Mutual labels:  finance, trading, trading-algorithms
Py Market Profile
A library to calculate Market Profile (aka Volume Profile) for financial data from a Pandas DataFrame.
Stars: ✭ 153 (+466.67%)
Mutual labels:  finance, trading, trading-algorithms
Trading Backtest
A stock backtesting engine written in modern Java. And a pairs trading (cointegration) strategy implementation using a bayesian kalman filter model
Stars: ✭ 247 (+814.81%)
Mutual labels:  finance, trading, stock
Rqalpha
A extendable, replaceable Python algorithmic backtest && trading framework supporting multiple securities
Stars: ✭ 4,425 (+16288.89%)
Mutual labels:  finance, trading, stock
Jiji2
Forex algorithmic trading framework using OANDA REST API.
Stars: ✭ 211 (+681.48%)
Mutual labels:  finance, trading, trading-algorithms
Alpaca Backtrader Api
Alpaca Trading API integrated with backtrader
Stars: ✭ 246 (+811.11%)
Mutual labels:  finance, trading, trading-algorithms
Axistradecult
Assist tool for trading on stock market, automatic download historical stock data, technical research, chart and analysis.
Stars: ✭ 26 (-3.7%)
Mutual labels:  finance, trading, stock
Awesome Streamlit
The purpose of this project is to share knowledge on how awesome Streamlit is and can be
Stars: ✭ 769 (+2748.15%)
Mutual labels:  finance, trading, analytics
Lean
Lean Algorithmic Trading Engine by QuantConnect (Python, C#)
Stars: ✭ 5,675 (+20918.52%)
Mutual labels:  finance, trading, trading-algorithms
wallstreet
Stock Quotes and Charts for the Terminal
Stars: ✭ 75 (+177.78%)
Mutual labels:  finance, stock, financial-analysis
Stocksera
Web application that provides alternative data to retail investors
Stars: ✭ 426 (+1477.78%)
Mutual labels:  finance, financial, stock
HTML-Crypto-Currency-Chart-Snippets
💹 Simple HTML Snippets to create Tickers / Charts of Cryptocurrencies with the TradingView API 💹
Stars: ✭ 89 (+229.63%)
Mutual labels:  finance, trading, financial-analysis
TradingView-Machine-Learning-GUI
Let Python optimize the best stop loss and take profits for your TradingView strategy.
Stars: ✭ 396 (+1366.67%)
Mutual labels:  trading, stock, trading-algorithms
Machine Learning And Ai In Trading
Applying Machine Learning and AI Algorithms applied to Trading for better performance and low Std.
Stars: ✭ 258 (+855.56%)
Mutual labels:  finance, trading, trading-algorithms
Example Hftish
Example Order Book Imbalance Algorithm
Stars: ✭ 355 (+1214.81%)
Mutual labels:  finance, trading, trading-algorithms

Stocklist

Summary

Disclaimer: If you plan on using this tool for making actual financial decisions in production, there is something wrong with you. Use it on your own risk.

This project is purely experimental. The repo contains functions I use for stock data collection and analysis.

Supported Operations

Get a list of stock symbols from NASDAQ

./stocklist.py dir nasdaq-traded > nasdaq_traded.txt
./stocklist.py dir nasdaq-listed > nasdaq_listed.txt

Pull fundamental data for a list of stock symbols

./stocklist.py pull AAPL LHA.DE
./stocklist.py pull --filename nasdaq-listed.txt

Graham filter

The tool can filter for stocks matching Benjamin Graham's seven criteria to identify strong value stocks. The criteria are:

  • Look for a quality rating that is average or better
  • Total Debt to Current Asset ratios of less than 1.10
  • Current Ratio over 1.50
  • Positive earnings per share growth during the past five years with no earnings deficits
  • Price to earnings per share (P/E) ratios of 9.0 or less
  • Price to book value (P/BV) ratios less than 1.20
  • Must currently be paying dividends

To check one or more symbols for Benjamin Graham's 7 criteria:

./stocklist.py graham AAPL LHA.DE

The same, but reading the symbols from a file:

./stocklist.py graham --filename nasdaq_listed.txt

Example output for a stock considered undervalued:

$ ./stocklist.py graham LEO.DE

LEO.DE:
 Using cached version
 !Warning: No rating found, assuming 3
 Rating: 3 -> Ok
 Share Price: 34.77
 Total Debt: 7159500000
 Total Debt/Equity: 65.31
 Total Assets: 31263100000
 Total Debt to Total Asset ratio: 0.22900799984646436 -> Ok
 Current Ratio: 1.06 -> Ok
 Net Income: 145022 -> Ok
 P/E (trailing): 8.52 -> Ok
 P/E (forward): 7.61 -> Ok
 Price to Book Value: 1.04 -> Ok
 Dividend (forward): 1.4 -> Ok
 -> Passed Graham filter

More options

There's always --help:

$ ./stocklist.py --help

This also provides more options for sub-commands:

$ ./stocklist.py graham --help

Data Sources

The data sources are all completely free (as in money), with no sign up required:

  • NASDAQ symbol directory
  • Yahoo finance (web scraping, no API)
  • Financial Modelling Prep API (to collect a rating for each stock)

Requirements

You'll need Python 3 with the modules listed in requirements.txt.

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].