Update README.md

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

View File

@ -1,2 +1,8 @@
# finance
Calculate the efficient frontier
## 使用说明
1. 修改起始时间`start_date`和`end_date`。需要注意有些公司上市时间可能比较迟例如B站是在2018年上市如果你的开始时间是从2015年开始那么结果可能会不准确。
2. 修改和添加`data_array`中的资产代号数量没有限制这里使用的是雅虎财经的API你可以在搜索引擎中以「公司名+雅虎财经Yahoo Finance」搜索对应公司代号。例如茅台是「600519.SS」苹果是「AAPL」腾讯是「0700.HK」。
3. 如果运算时间过长,你可以尝试降低`sample_num`的数值。
4. 计算结果仅供参考。投资有风险,入市需谨慎。