Portfolio Optimization in Python
We will show how you can build a diversified portfolio that satisfies specific constraints. For this tutorial, we will build a portfolio that minimizes the risk. So the first thing to do is to get the stock prices programmatically using Python. We will work with the package where you can install it using pip install yfinance --upgrade --no-cache-dir You will need to get the symbol of the stock. You can find the mapping between NASDAQ stocks and symbols in this csv file.
Nov-11-2020, 01:45:26 GMT