This repo is about creating a tool that helps people's assess their financial health.
Using the Alpaca Markets API to to pull historical stocks and bonds information
And the Alternative Free Crypto API to retrieve Bitcoin and Ethereum prices.
The first will be a personal finance planner that will allow users to visualize their savings composed by investments in shares and cryptocurrencies to assess if they have enough money as an emergency fund.
Collecting Crypto BTC, ETH prices using the requests Library. Parsin the API JSON response to select only both crypto prices and store their respective prices in a variable.
A retirement planning tool that uses the Alpaca API to fetch historical closing prices for a retirement portfolio composed of stocks(SPY) and bonds(AGG). Running Monte Carlo simulations to project the portfolio performance at 30 years. Then I used the Monte Carlo data to calculate the expected portfolio returns given a specific initial investment amount.
Packages:
- [os] (https://docs.python.org/3/library/os.html)
- [requests] (https://pypi.org/project/requests/)
- [json] (https://docs.python.org/3/library/json.html)
- [dotenv] (https://pypi.org/project/python-dotenv/)
- [alpaca_trade_api] (https://alpaca.markets/docs/)
- [MCForecastTools.py]
This project will utilizes two APIs
:
-
The Alpaca Markets API to pull historical stocks and bonds information. AlpacaDOCS
-
The Alternative Free Crypto API to retrieve Bitcoin and Ethereum prices. Free Crypto API Documentation