style: normalize fidc core formatting
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user