将手工观察接入执行时钟并保留来源与账本语义

This commit is contained in:
boris
2026-09-14 11:41:15 +08:00
parent 93de28d369
commit 7f0c6a008a
10 changed files with 435 additions and 95 deletions
+7
View File
@@ -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,