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])
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
网友评论