코드 참조 경로 업데이트 & WBS-8.1 모니터링 준비
경로 정규화 (outputs/ → src/quant_engine/): ✓ kis_api_client_v1.py: KIS 데이터 수집 경로 ✓ kis_data_collection_v1.py: 기본 DB 인자 ✓ snapshot_admin_server_v1.py: KIS_COLLECTION_DB ✓ snapshot_admin_store_v1.py: DEFAULT_DB + collector_db ✓ run_snapshot_admin_server_v1.py: --db 기본값 모니터링 도구 추가: ✓ verify_admin_db.py: 어드민 서버 & DB 검증 ✓ setup_wbs81_monitoring.py: WBS-8.1 목표 추적 시스템 ✓ update_db_paths.py: 자동화된 경로 업데이트 효과: - 단일 소스 (src/quant_engine/) - 배포 스크립트 단순화 - WBS-8.1: T+20 30건 모니터링 준비 완료 - 22일 남음 (목표: 2026-07-15) Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -118,7 +118,7 @@ class KisCredentials:
|
||||
import sqlite3
|
||||
|
||||
def _token_db_path() -> Path:
|
||||
db_dir = ROOT / "outputs" / "kis_data_collection"
|
||||
db_dir = ROOT / "src" / "quant_engine"
|
||||
db_dir.mkdir(parents=True, exist_ok=True)
|
||||
return db_dir / "kis_data_collection.db"
|
||||
|
||||
|
||||
@@ -439,7 +439,7 @@ def collect_to_sqlite(
|
||||
def main() -> int:
|
||||
ap = argparse.ArgumentParser(description=__doc__)
|
||||
ap.add_argument("--input-json", type=Path, default=ROOT / "GatherTradingData.json")
|
||||
ap.add_argument("--sqlite-db", type=Path, default=ROOT / "outputs" / "kis_data_collection" / "kis_data_collection.db")
|
||||
ap.add_argument("--sqlite-db", type=Path, default=ROOT / "src" / "quant_engine" / "kis_data_collection.db")
|
||||
ap.add_argument("--store-backend", default="sqlite", help="Storage backend contract placeholder (sqlite today, postgresql planned)")
|
||||
ap.add_argument("--store-location", default=None, help="Backend location/DSN. sqlite path or future postgres DSN.")
|
||||
ap.add_argument("--output-json", type=Path, default=ROOT / "Temp" / "kis_data_collection_v1.json")
|
||||
|
||||
@@ -13,7 +13,7 @@ from urllib.parse import urlparse, parse_qs
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[2]
|
||||
SNAPSHOT_ADMIN_VERSION = "snapshot-admin-web-v6"
|
||||
KIS_COLLECTION_DB = ROOT / "outputs" / "kis_data_collection" / "kis_data_collection.db"
|
||||
KIS_COLLECTION_DB = ROOT / "src" / "quant_engine" / "kis_data_collection.db"
|
||||
KIS_COLLECTION_REPORT = ROOT / "Temp" / "kis_data_collection_v1.json"
|
||||
QUALITATIVE_SELL_DB = ROOT / "outputs" / "qualitative_sell_strategy" / "qualitative_sell_strategy.db"
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ import yaml
|
||||
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[2]
|
||||
DEFAULT_DB = ROOT / "outputs" / "snapshot_admin" / "snapshot_admin.db"
|
||||
DEFAULT_DB = ROOT / "src" / "quant_engine" / "snapshot_admin.db"
|
||||
DEFAULT_SEED_JSON = ROOT / "GatherTradingData.json"
|
||||
KST = timezone(timedelta(hours=9))
|
||||
|
||||
@@ -746,7 +746,7 @@ def summarize_workspace(db_path: Path | str | None = None) -> dict[str, Any]:
|
||||
"topology": {
|
||||
"mode": "single_workspace_sqlite",
|
||||
"workspace_db": workspace_db,
|
||||
"collector_db": str(ROOT / "outputs" / "kis_data_collection" / "kis_data_collection.db"),
|
||||
"collector_db": str(ROOT / "src" / "quant_engine" / "kis_data_collection.db"),
|
||||
"settings_and_snapshot_share_db": True,
|
||||
"collector_separate_db": True,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user