统一FIDC卖出allow_sell风控

This commit is contained in:
boris
2026-07-04 17:01:02 +08:00
parent 487e1a38aa
commit 143a021067
2 changed files with 20 additions and 10 deletions
+1 -4
View File
@@ -2295,10 +2295,7 @@ where
position: &crate::portfolio::Position,
algo_request: Option<&AlgoExecutionRequest>,
) -> RuleCheck {
if self.risk_config.static_rules.respect_allow_buy_sell
&& !self.aiquant_execution_rules
&& !candidate.allow_sell
{
if self.risk_config.static_rules.respect_allow_buy_sell && !candidate.allow_sell {
return RuleCheck::reject("sell_disabled");
}
let check_price = if self.aiquant_execution_rules {