Investment.py 文件源码

python
阅读 52 收藏 0 点赞 0 评论 0

项目:Investment-PythonModule 作者: tommyxu97 项目源码 文件源码
def index_model(self):
        """
        Build a asset protfolio using index model.
        """
        hs300_data = ts.get_hist_data('hs300', self.start, self.end)
        self.stockdata['hs300'] = hs300_data['close']
        for stock_single in self.stocklist:
            self.stockdata[stock_single] = ts.get_hist_data(stock_single, self.start, self.end)['close']
        returns = (self.stockdata/self.stockdata.shift(1))-1





        print('This function will be completed later!')

        # To be continued
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号