完善策略调度执行价校验
This commit is contained in:
@@ -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())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user