Monday, May 25, 2020

Get financial data and financial metrics

source: https://towardsdatascience.com/a-comprehensive-guide-to-downloading-stock-prices-in-python-2cd93ff821d4
source: https://towardsdatascience.com/quants-guide-finding-key-metrics-ratios-using-python-390bb7873e62
source: https://www.pythonforfinance.net/recommended-sites-and-resources/

https://github.com/Poseyy/MarketAnalysis/blob/master/portfolios/PortfolioAnalysis.ipynb


Sources of data

import yfinance as yf
import yahoofinancials
import ffn as f

Portfolio maximization

from empyrical import alpha_beta
from pypfopt.efficient_frontier import EfficientFrontier
from pypfopt import risk_models
from pypfopt import expected_returns
from pypfopt import discrete_allocation












No comments:

Post a Comment

Loud fan of desktop

 Upon restart the fan of the desktop got loud again. I cleaned the desktop from the dust but it was still loud (Lower than the first sound) ...