科技美学

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

1.0 Python

Python 3.6.8 (must use this python version)

 

2.0 requirements.txt

backtrader==1.9.76.123
pyfolio==0.9.2
zipline==1.3.0
pandas==0.22.0
yfinance==0.1.70

  

3.0 edit yfinance package
{root}\venv\lib\site-packages\yfinance\base.py

df = _pd.concat([quotes, dividends, splits], axis=1) # sort=True

  line:290, remove sort=True

 

4.0 edit backtrader package
{root}\venv\lib\site-packages\backtrader\plot\locator.py

from matplotlib.dates import (HOURS_PER_DAY, MIN_PER_HOUR, SEC_PER_MIN,
                              MONTHS_PER_YEAR, DAYS_PER_WEEK,
                              SEC_PER_HOUR, SEC_PER_DAY,
                              num2date, rrulewrapper, YearLocator,
                              MicrosecondLocator) # warnings

  line 39, remove warnings

 

5.0 Complete

posted on 2022-06-16 10:44  chankuang  阅读(340)  评论(0编辑  收藏  举报