#coding:gbk def init(C): pass def handlebar(C): if C.is_last_bar(): price=C.get_market_data_ex([],['rb2405.SF'],period='l2quote',count=1) print(price['rb2405.SF'].to_dict('index'))
上面的代码我们获取了上期所rb2405的5档行情,效果如下
举报
本版积分规则 发表回复 回帖后跳转到最后一页
19
99
0