补齐北交所基础过滤语义
This commit is contained in:
@@ -251,6 +251,7 @@ fn band_low(index_close) {
|
||||
"paused".to_string(),
|
||||
"st".to_string(),
|
||||
"kcb".to_string(),
|
||||
"bjse".to_string(),
|
||||
"one_yuan".to_string(),
|
||||
"new_listing".to_string(),
|
||||
],
|
||||
@@ -5966,6 +5967,9 @@ impl PlatformExprStrategy {
|
||||
if excludes.iter().any(|item| item == "kcb") && candidate.is_kcb {
|
||||
return false;
|
||||
}
|
||||
if excludes.iter().any(|item| item == "bjse") && market.symbol.ends_with(".BJ") {
|
||||
return false;
|
||||
}
|
||||
if excludes.iter().any(|item| item == "new_listing") && candidate.is_new_listing {
|
||||
return false;
|
||||
}
|
||||
@@ -6214,6 +6218,9 @@ impl PlatformExprStrategy {
|
||||
if excludes.iter().any(|item| item == "kcb") && candidate.is_kcb {
|
||||
return Ok(Some("kcb".to_string()));
|
||||
}
|
||||
if excludes.iter().any(|item| item == "bjse") && market.symbol.ends_with(".BJ") {
|
||||
return Ok(Some("bjse".to_string()));
|
||||
}
|
||||
if excludes.iter().any(|item| item == "new_listing") && candidate.is_new_listing {
|
||||
return Ok(Some("new_listing".to_string()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user