统一FIDC卖出allow_sell风控
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user