chore: address review feedback
Co-authored-by: genichin <4282227+genichin@users.noreply.github.com>
This commit is contained in:
co-authored by
genichin
parent
3e74d35299
commit
8f74c6b67d
@@ -640,10 +640,10 @@ class KISBroker:
|
|||||||
order_date = str(row.get("ord_dt") or fallback_date).strip()
|
order_date = str(row.get("ord_dt") or fallback_date).strip()
|
||||||
order_time = str(row.get("ord_tmd") or "").strip()[:6]
|
order_time = str(row.get("ord_tmd") or "").strip()[:6]
|
||||||
if len(order_time) == 6 and order_time.isdigit():
|
if len(order_time) == 6 and order_time.isdigit():
|
||||||
ordered_at = datetime.strptime(order_date + order_time, "%Y%m%d%H%M%S")
|
executed_at = datetime.strptime(order_date + order_time, "%Y%m%d%H%M%S")
|
||||||
return ordered_at.replace(tzinfo=_KST).astimezone(timezone.utc)
|
return executed_at.replace(tzinfo=_KST).astimezone(timezone.utc)
|
||||||
ordered_at = datetime.strptime(order_date, "%Y%m%d")
|
executed_at = datetime.strptime(order_date, "%Y%m%d")
|
||||||
return ordered_at.replace(tzinfo=_KST).astimezone(timezone.utc)
|
return executed_at.replace(tzinfo=_KST).astimezone(timezone.utc)
|
||||||
|
|
||||||
def lookup_fill_evidence(self, *, trading_date: str, execution_id: str) -> dict:
|
def lookup_fill_evidence(self, *, trading_date: str, execution_id: str) -> dict:
|
||||||
"""Read one exact filled/partial-cancel evidence row for a historical execution."""
|
"""Read one exact filled/partial-cancel evidence row for a historical execution."""
|
||||||
|
|||||||
Reference in New Issue
Block a user