保留AiQuant盘中卖出价格风控语义

This commit is contained in:
boris
2026-07-04 17:02:55 +08:00
parent 143a021067
commit a8ffd36150
2 changed files with 12 additions and 3 deletions
+3 -1
View File
@@ -845,7 +845,8 @@ mod tests {
fn sell_rejection_blocks_execution_price_at_lower_limit() {
let prev_date = d(2024, 4, 16);
let date = d(2024, 4, 17);
let candidate = candidate(date);
let mut candidate = candidate(date);
candidate.allow_sell = true;
let market = market(date, 5.63, 5.63);
let position = position(prev_date);
@@ -1081,6 +1082,7 @@ mod tests {
fn missing_risk_state_rejects_selection_and_buy_when_static_filters_enabled() {
let date = d(2025, 1, 2);
let mut candidate = candidate(date);
candidate.allow_sell = true;
candidate.risk_level_code = Some("missing_risk_state:is_st,allow_buy".to_string());
let market = market(date, 6.27, 5.63);