This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 过滤停牌、ST类股票及其他具有退市标签的股票 | |
def filter_paused_and_st_stock(stock_list): | |
current_data = get_current_data() | |
return [stock for stock in stock_list | |
if not current_data[stock].paused | |
and not current_data[stock].is_st | |
# and 'ST' not in current_data[stock].name | |
# and '*' not in current_data[stock].name | |
and '退' not in current_data[stock].name] | |