perf: cache symbol board classification
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user