tushare_source.py 文件源码

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

项目:zipline_cn_databundle 作者: rainx 项目源码 文件源码
def get_hist_data(symbol_map, histories, start_session, end_session):
    for sid, index in symbol_map.iteritems():
        history = histories[index]

        """
        writer needs format with
        [index], open, close, high, low, volume

        so we do not need to change the format from tushare

        but we need resort it
        """
        yield sid, history.sort_index()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号