diff --git a/trex_core/adapters/broker/kis.py b/trex_core/adapters/broker/kis.py index 15d052f..a82af07 100644 --- a/trex_core/adapters/broker/kis.py +++ b/trex_core/adapters/broker/kis.py @@ -640,10 +640,10 @@ class KISBroker: order_date = str(row.get("ord_dt") or fallback_date).strip() order_time = str(row.get("ord_tmd") or "").strip()[:6] if len(order_time) == 6 and order_time.isdigit(): - ordered_at = datetime.strptime(order_date + order_time, "%Y%m%d%H%M%S") - return ordered_at.replace(tzinfo=_KST).astimezone(timezone.utc) - ordered_at = datetime.strptime(order_date, "%Y%m%d") - return ordered_at.replace(tzinfo=_KST).astimezone(timezone.utc) + executed_at = datetime.strptime(order_date + order_time, "%Y%m%d%H%M%S") + return executed_at.replace(tzinfo=_KST).astimezone(timezone.utc) + executed_at = datetime.strptime(order_date, "%Y%m%d") + return executed_at.replace(tzinfo=_KST).astimezone(timezone.utc) def lookup_fill_evidence(self, *, trading_date: str, execution_id: str) -> dict: """Read one exact filled/partial-cancel evidence row for a historical execution."""