From 8f74c6b67d2c4adf47d7c0ea6710e3a1fc50780b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 24 Aug 2026 10:27:49 +0000 Subject: [PATCH] chore: address review feedback Co-authored-by: genichin <4282227+genichin@users.noreply.github.com> --- trex_core/adapters/broker/kis.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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."""