https://www.tejwin.com/insight/【量化分析】效率前緣曲線
https://github.com/tejtw/TEJAPI_Python_Medium_Quant
https://zh.wikipedia.org/zh-tw/现代投资组合理论
https://www.portfoliovisualizer.com/efficient-frontier
https://ithelp.ithome.com.tw/articles/10248805
import yfinance as yf
coid = ['2330.TW', '0050.TW', '0056.TW', "VGLT", "QQQ"]
data = yf.download(coid, start="2020-01-01", end="2024-12-31")
adj_close = data["Close"]
returns = adj_close.pct_change().mul(100)
No comments:
Post a Comment