完善日线无量订单取消语义
This commit is contained in:
@@ -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]
|
||||||
|
|||||||
Reference in New Issue
Block a user