Revert "perf: cache symbol board classification"

This reverts commit eb8b14602a.
This commit is contained in:
boris
2026-09-05 03:19:31 +08:00
parent eb8b14602a
commit f2105399c5
3 changed files with 25 additions and 33 deletions
+6 -1
View File
@@ -4,7 +4,7 @@ use chrono::NaiveDate;
use serde::{Deserialize, Serialize};
use crate::OrderSide;
use crate::data::{CandidateEligibility, DailyMarketSnapshot, PriceField, symbol_is_bjse};
use crate::data::{CandidateEligibility, DailyMarketSnapshot, PriceField};
use crate::instrument::Instrument;
use crate::portfolio::Position;
@@ -602,6 +602,11 @@ fn symbol_is_kcb(symbol: &str) -> bool {
(normalized.starts_with("688") || normalized.starts_with("689")) && normalized.ends_with(".SH")
}
fn symbol_is_bjse(symbol: &str) -> bool {
let normalized = symbol.trim().to_ascii_uppercase();
normalized.ends_with(".BJ") || normalized.ends_with(".BSE") || normalized.ends_with(".BE")
}
fn candidate_active_status_rejection(
candidate: &CandidateEligibility,
config: &FidcRiskControlConfig,