过滤涨跌停两个函数可以改进一下,合并为一个,而且不用history获得分钟收盘价,get_current_data里面就有最新价格:
```
def filter_limit_stock(context, stock_list):
current_data = get_current_data()
return [stock for stock in stock_list if stock in context.portfolio.positions.keys()
or (current_data[stock].low_limit< current_data[stock].last_price< current_data[stock].high_limit)]
```