kp7425 / mlstocks

Tools for investing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status Donate just a small amount, buy me a coffee!

#mlstocks

python library to manipulate stock data.

Features

For a given ticker/symbol (see the examples starting with "one_ticker" in the folder examples)

  • Download statistics from yahoo finance (e.g. beta, EPS, recommended price, rating, etc.)
  • Download time history from yahoo finance (e.g. 5d, 1y, 5y)
  • Download statistics from tipranks (e.g. scrore, recommended price)

For a list of tickers (see the examples starting with "multiple_tickers" in the folder examples):

  • Multi-threaded download of the statistics for each tickers from yahoo finance and/or tipranks
  • Compute some simple metrics based on time history (e.g. Day change, week change, or performance compared to S&P 500)
  • Store the data into a pandas dataframe, and export it to Excel with someconditional formatting

Installation

git clone http://github.com/ebranlard/mlstocks
cd mlstocks
python -m pip install -r requirements.txt
python -m pip install -e .

Then you can try running the examples in the folder examples.

Ressources

The yahoo finance download was inspired by the project yfinance

Screen stocks using yahoo finance here

Monitor the 10y over 2y bond curve here

Simple scope here

Contributing

Any contributions to this project are welcome! If you find this project useful, you can also buy me a coffee (donate a small amount) with the link below:

Donate just a small amount, buy me a coffee!

About

Tools for investing


Languages

Language:Python 99.8%Language:Batchfile 0.1%Language:Makefile 0.0%