将手工观察接入执行时钟并保留来源与账本语义
This commit is contained in:
@@ -2754,6 +2754,13 @@ where
|
||||
.insert(symbol.to_string());
|
||||
}
|
||||
|
||||
pub(crate) fn record_observed_manual_execution(&self, execution: &crate::manual_execution::ManualReplayApplication) {
|
||||
if execution.side == OrderSide::Sell {
|
||||
let date = execution.executed_at.with_timezone(&chrono::FixedOffset::east_opt(8 * 3600).unwrap()).date_naive();
|
||||
self.mark_same_day_sold(date, &execution.symbol);
|
||||
}
|
||||
}
|
||||
|
||||
fn same_day_rebuy_rejection_reason(
|
||||
&self,
|
||||
date: NaiveDate,
|
||||
|
||||
Reference in New Issue
Block a user