您正在使用的浏览器版本较低,无法支持聚宽的某些特性。
为了获得更好的体验,推荐使用: Google Chrome 或者 Mozilla Firefox 或者 IE9以上。
找出昨天涨停股票
您需要登录后才能查看源码,点击登录
点赞 0
错的函数还往上发,你也是个人才!!!!!!!!!!!!!!!!!!!!!
少了item()会报错,以下为修改后: def firsthighlimitfilteryesterday(context, securitylist): securitylist = [ security for security in securitylist if attributehistory(security, 1, '1d', ['close'])['close'].item() >= attribute_history(security, 1, '1d', ['high_limit'])['high_limit'].item() ]
return security_list