美文网首页
米筐学习

米筐学习

作者: 黄yy家的jby | 来源:发表于2019-01-11 09:57 被阅读0次

1.init

init函数只运行一次,用来填入标的
update_universe用来订阅股票

def init(context):
    #context.s1='000001.XSHE'
    context.stockcode = "000001.XSHE"
    context.stockcode2 = "000024.XSHE"
    update_universe([context.stockcode, context.stockcode2])

相关文章

网友评论

      本文标题:米筐学习

      本文链接:https://www.haomeiwen.com/subject/nlutdqtx.html