完善策略调度执行价校验

This commit is contained in:
boris
2026-06-13 15:26:56 +08:00
parent 4cf90d83a3
commit 0dca8e0eff
5 changed files with 744 additions and 51 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ impl Instrument {
pub fn is_active_on(&self, date: NaiveDate) -> bool {
self.listed_at.is_none_or(|listed_at| listed_at <= date)
&& !self.is_delisted_before(date)
&& !self.status.eq_ignore_ascii_case("inactive")
&& !(self.status.eq_ignore_ascii_case("inactive") && self.delisted_at.is_none())
}
}