我写了一个过滤涨停代码,但是无法正常过滤,请大神们帮忙看一下,谢谢
过滤涨停的股票
def filter_limitup_stock(account,data, stock_list): last_prices = data.history(stock_list , 'close' , 1 , '1m') current_data = data.current(stock_list) return [stock for stock in stock_list if list(last_prices[stock]['close'])[-1] < current_data[stock].high_limit]

