fix(ledger): retain SOR fills with unknown venue
This commit is contained in:
@@ -175,6 +175,26 @@ def test_kis_fill_status_carries_sor_actual_execution_venue():
|
||||
assert status.execution_venue == "NXT"
|
||||
|
||||
|
||||
def test_kis_sor_fill_without_actual_exchange_keeps_execution_venue_unknown():
|
||||
status = KISBroker._fill_status_from_row(
|
||||
{
|
||||
"ord_qty": "10",
|
||||
"tot_ccld_qty": "10",
|
||||
"avg_prvs": "70000",
|
||||
"ord_dt": "20260824",
|
||||
"ord_gno_brno": "12345",
|
||||
"odno": "0000000002",
|
||||
"excg_id_dvsn_cd": "SOR",
|
||||
},
|
||||
side="buy",
|
||||
today="20260824",
|
||||
fallback_odno="0000000002",
|
||||
)
|
||||
|
||||
assert status.is_filled
|
||||
assert status.execution_venue is None
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# REQ-117 AC-4: 기존 위치 인수 순서 불변
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user