perf: cache symbol board classification

This commit is contained in:
boris
2026-09-05 03:09:15 +08:00
parent df52f90d46
commit eb8b14602a
3 changed files with 33 additions and 25 deletions
+1 -6
View File
@@ -4,7 +4,7 @@ use chrono::NaiveDate;
use serde::{Deserialize, Serialize};
use crate::OrderSide;
use crate::data::{CandidateEligibility, DailyMarketSnapshot, PriceField};
use crate::data::{CandidateEligibility, DailyMarketSnapshot, PriceField, symbol_is_bjse};
use crate::instrument::Instrument;
use crate::portfolio::Position;
@@ -602,11 +602,6 @@ 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,