style: normalize fidc core formatting

This commit is contained in:
boris
2026-09-04 22:18:35 +08:00
parent b15b93eec1
commit 92322349d4
9 changed files with 231 additions and 219 deletions
+4 -2
View File
@@ -3,10 +3,10 @@ use std::collections::BTreeSet;
use chrono::NaiveDate;
use serde::{Deserialize, Serialize};
use crate::OrderSide;
use crate::data::{CandidateEligibility, DailyMarketSnapshot, PriceField};
use crate::instrument::Instrument;
use crate::portfolio::Position;
use crate::OrderSide;
#[derive(Debug, Clone, Copy, Default)]
pub struct ChinaAShareRiskControl;
@@ -560,7 +560,9 @@ impl ChinaAShareRiskControl {
// lifecycle fact must still protect the sell path. Otherwise a
// `inactive_or_delisted` candidate could fall through to a synthetic
// sell price and violate the unresolved-delisted holding contract.
if let Some(reason) = candidate_active_status_rejection(candidate, config, RiskCheckScope::Sell) {
if let Some(reason) =
candidate_active_status_rejection(candidate, config, RiskCheckScope::Sell)
{
return Some(reason);
}
if config.static_rules.reject_paused_sell && (market.paused || candidate.is_paused) {