补齐北交所基础过滤语义

This commit is contained in:
boris
2026-07-01 14:24:02 +08:00
parent 49e883827e
commit 6b1afc975e
@@ -251,6 +251,7 @@ fn band_low(index_close) {
"paused".to_string(), "paused".to_string(),
"st".to_string(), "st".to_string(),
"kcb".to_string(), "kcb".to_string(),
"bjse".to_string(),
"one_yuan".to_string(), "one_yuan".to_string(),
"new_listing".to_string(), "new_listing".to_string(),
], ],
@@ -5966,6 +5967,9 @@ impl PlatformExprStrategy {
if excludes.iter().any(|item| item == "kcb") && candidate.is_kcb { if excludes.iter().any(|item| item == "kcb") && candidate.is_kcb {
return false; 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 { if excludes.iter().any(|item| item == "new_listing") && candidate.is_new_listing {
return false; return false;
} }
@@ -6214,6 +6218,9 @@ impl PlatformExprStrategy {
if excludes.iter().any(|item| item == "kcb") && candidate.is_kcb { if excludes.iter().any(|item| item == "kcb") && candidate.is_kcb {
return Ok(Some("kcb".to_string())); 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 { if excludes.iter().any(|item| item == "new_listing") && candidate.is_new_listing {
return Ok(Some("new_listing".to_string())); return Ok(Some("new_listing".to_string()));
} }