fix(reconcile): symbol을 슬롯 생성 시 함께 저장 + NULL 슬롯 backfill
reconcile_universe 시그니처를 set[str] → dict[str, str] (portfolio_id→symbol)로 변경. 기존 symbol=NULL 슬롯은 다음 reconcile 실행 시 자동 backfill. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -28,7 +28,7 @@ def _wire():
|
||||
svc = SlotService(repo)
|
||||
intents = IntentService(svc, repo, InMemoryIntentStore(),
|
||||
resolve_symbol=lambda pid: "005930")
|
||||
repo.reconcile_universe("default", {"PF-1"})
|
||||
repo.reconcile_universe("default", {"PF-1": "SYM"})
|
||||
return repo, svc, intents
|
||||
|
||||
|
||||
@@ -145,7 +145,7 @@ class TestDefaultOrderTimeoutSec:
|
||||
resolve_symbol=lambda pid: "005930",
|
||||
default_order_timeout_sec=default_timeout,
|
||||
)
|
||||
repo.reconcile_universe("default", {"PF-1"})
|
||||
repo.reconcile_universe("default", {"PF-1": "SYM"})
|
||||
return repo, svc, intents
|
||||
|
||||
def test_config_default_applied_when_intent_has_no_timeout(self):
|
||||
|
||||
Reference in New Issue
Block a user