StockReport is a Python program that allows you to simply create an automated PDF report about a stock.
Project description
StockReport is a Python program that allows you to simply create an automated PDF report about a stock.
Installation
Before starting please install the following packages:
pip install alpha_vantage
pip install pandas
pip install fpdf
pip install plotly
pip install kaleido
Then install stock-report:
pip install stock-report
Usage
Alpha Vantage
This project is build with the Alpha Vantage API
You can request a free key at the following link: Claim API Key
Save your key as an environment variable
Mac
- From your terminal, type in:
export ALPHAVANTAGE_API_KEY=xxx
- Make sure to use your actual API key for the value. You can confirm that the environment variable is saved by typing in the following which should display your API key:
echo $ALPHAVANTAGE_API_KEY
or
- From your terminal, type in:
nano .zshenv
- In nano insert
export ALPHAVANTAGE_API_KEY=xxx
- Close nano
- Restart
Windows
- Click Start and type in
environment variables
. You should see an option to Edit environment variables for your account. - In the new window that pops up, click New under the User variables section.
- Your variable name should be
ALPHAVANTAGE_API_KEY
and the variable value is where you can paste in your key.
Run
Run with:
python3 -m stock_report
You can find your pdf in the download folder.
Examples
You can view the examples here.
License
MIT See here
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
stock-report-1.0.0.tar.gz
(635.5 kB
view hashes)
Built Distribution
stock_report-1.0.0-py3-none-any.whl
(634.5 kB
view hashes)
Close
Hashes for stock_report-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5843e2cb2db20b9c067a07766d62c71732da14fb983e6e56ee4e4a39dad8f810 |
|
MD5 | 98cb17f64afe49a482e73e082c24ac71 |
|
BLAKE2b-256 | 8e76bf8fb966d124f1d03ef552f8b06126ecad822d6aaac5e61a40b62b48e196 |