Personal portfolio analysis with Python and Alpaca API. Contains a monte carlo simulation script to predict the returns of a portfolio.
Wanted to try out the Alpaca API and use it to analyze a portfolio.
Before you begin, ensure you have met the following requirements:
- You have the
Alpaca API key
and havepython
andjupyter-notebook
installed.
Add the API keys to .env
file
APCA_API_KEY_ID=SECRET
APCA_API_SECRET_KEY=SECRET
To install pyfinance, follow these steps:
git clone https://github.com/2kabhishek/pyfinance
cd pyfinance
Explore the dataset and the notebook, tweak parameters and run the notebook.
pyfinance was built using jupyter-notebook
and python
.
Understanding different financial instruments and terminology was a challenge.
- Alpaca API and the Alpaca Trading Platform.
- Monte Carlo simulation.
Some sections are incomplete.
Hit the β button if you found this useful.