完善日线无量订单取消语义

This commit is contained in:
boris
2026-07-02 21:17:44 +08:00
parent 97931c3766
commit daa0a9b4e6
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -5620,6 +5620,8 @@ fn zero_fill_status_for_reason(reason: &str) -> OrderStatus {
match reason { match reason {
"minute no volume" "minute no volume"
| "minute volume limit" | "minute volume limit"
| "daily no volume"
| "daily volume limit"
| "intraday quote liquidity exhausted" | "intraday quote liquidity exhausted"
| "no execution quotes at or before start" | "no execution quotes at or before start"
| "no execution quotes after start" | "no execution quotes after start"
@@ -2267,7 +2267,7 @@ fn broker_cancels_market_buy_when_minute_has_no_volume() {
report.order_events[0].status, report.order_events[0].status,
fidc_core::OrderStatus::Canceled fidc_core::OrderStatus::Canceled
); );
assert!(report.order_events[0].reason.contains("minute no volume")); assert!(report.order_events[0].reason.contains("daily no volume"));
} }
#[test] #[test]