#mlstocks
python library to manipulate stock data.
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
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
.
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
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: