Skip to content

Set of Python scripts that can be used to retrieve and plot market data

License

Notifications You must be signed in to change notification settings

bubelov/market-plots

Repository files navigation

Market Plots

A bunch of Python scripts that can be used to plot financial data

Prerequisites

  1. Python 3
  2. Alpha Vantage API key (it's free)

Installing

git clone git@github.com:bubelov/market-plots.git
cd market-plots
python3 -m venv venv
. venv/bin/activate
pip install -r requirements.txt
echo ALPHA_VANTAGE_KEY=YOUR_API_KEY > .env

Plotting History

python history.py spx
tree img/

img/
└── [4.0K]  history
    └── [102K]  spx.png

display -update 1 img/history/spx.png

History

Plotting Variance

python variance.py tsla

Variance

Comparing Returns

python compare.py goog spx

Comparing Returns

Efficient Frontier (2 Assets)

python frontier2.py IBM DIS

Efficient Frontier (IBM, DIS)

Efficient Frontier (N Assets)

python frontier.py IBM DIS KO

Efficient Frontier (IBM, DIS, KO)

Releases

No releases published

Packages

No packages published

Languages