<commit_before>Stock Price Decline Checker
===========================

Checks a list of stocks to see if the price has declined a certain percentage
from its maximum price over a number of days.

## Author

<a href="http://www.nicholaskuechler.com/"><NAME></a>

## Requirements

* argparse
* matplotlib - to pull the stock quote data from Yahoo! Finance

You can install them with pip:

    pip install argparse
    pip install matplotlib

Or you can install them using pip and the requirements.txt file:

    pip install -r requirements.txt

## Example

Show help menu:

    python stock-price-decline-checker.py -h

Run the decline checker against some index ETFs:

    python stock-price-decline-checker.py -s QQQ,SPY,DIA -d 50 -p 5 -v

<pre>
Symbols: ['QQQ', 'SPY', 'DIA']
Percent: 5.0
Days: 50
Verbose: True

Checking for a 5.0% decline over the past 50 days

Index stock: QQQ
- max value over 50 days: 83.06
- most recent close: 82.81
- percent change: -0.3%

Index stock: SPY
- max value over 50 days: 177.17
- most recent close: 176.21
- percent change: -0.54%

Index stock: DIA
- max value over 50 days: 156.5
- most recent close: 155.86
- percent change: -0.41%
</pre><commit_msg>Initial commit.<commit_after>Stock Price Decline Checker
===========================

Checks a list of stocks to see if the price has declined a certain percentage
from its maximum price over a number of days.

## Author

<a href="http://www.nicholaskuechler.com/"><NAME></a>

## Requirements

* argparse
* matplotlib - to pull the stock quote data from Yahoo! Finance

You can install them with pip:

    pip install argparse
    pip install matplotlib

Or you can install them using pip and the requirements.txt file:

    pip install -r requirements.txt

## Example

Show help menu:

    python stock-price-decline-checker.py -h

Run the decline checker against some index ETFs:

    python stock-price-decline-checker.py -s QQQ,SPY,DIA -d 50 -p 5 -v

Example output:

<pre>
Symbols: ['QQQ', 'SPY', 'DIA']
Percent: 5.0
Days: 50
Verbose: True

Checking for a 5.0% decline over the past 50 days

Index stock: QQQ
- max value over 50 days: 83.06
- most recent close: 82.81
- percent change: -0.3%

Index stock: SPY
- max value over 50 days: 177.17
- most recent close: 176.21
- percent change: -0.54%

Index stock: DIA
- max value over 50 days: 156.5
- most recent close: 155.86
- percent change: -0.41%
</pre>
{'fraction_non_alphanumeric': 0.1149521032902957, 'fraction_numerical': 0.043315285297792584, 'mean_word_length': 3.4646840148698885, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4371978', 'n_tokens_mistral': 882, 'n_tokens_neox': 777, 'n_words': 330}