Update README.md

This commit is contained in:
Wyman Lin 2021-02-20 12:22:20 +08:00 committed by GitHub
parent 413788c1b7
commit 340d85120b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,7 @@
# finance
Calculate the efficient frontier
## 关于
1. 代码主要参考Fábio Neves的文章你可以在他的文章中找到一些细节性的解释https://towardsdatascience.com/python-markowitz-optimization-b5e1623060f5
2. 欢迎转发本期视频支持我们
## 使用说明
1. 修改起始时间`start_date`和`end_date`。需要注意有些公司上市时间可能比较迟例如B站是在2018年上市如果你的开始时间是从2015年开始那么结果可能会不准确。
2. 修改和添加`data_array`中的资产代号数量没有限制这里使用的是雅虎财经的API你可以在搜索引擎中以「公司名+雅虎财经Yahoo Finance」搜索对应公司代号。例如茅台是「600519.SS」苹果是「AAPL」腾讯是「0700.HK」。