refactor: GT·시뮬·운영 3축 정리 및 hybrid 실거래 정합
Phase C/dry-run·미사용 모듈·재생성 HTML을 제거하고, 운영 체결을 sim_causal_hybrid와 동일한 hybrid 로직으로 통합한다. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,20 +1,54 @@
|
||||
# scripts — 단계별 CLI
|
||||
# scripts — CLI (Ground Truth · Simulation · Operations)
|
||||
|
||||
프로젝트 루트에서 실행하세요. 각 스크립트는 `_bootstrap.py`로 `.env`와 `config`를 로드합니다.
|
||||
`_bootstrap.py`가 `.env`를 로드합니다. 설계: [docs/reference/ARCHITECTURE.md](../docs/reference/ARCHITECTURE.md)
|
||||
|
||||
## 데이터 (공통)
|
||||
|
||||
| 스크립트 | 설명 |
|
||||
|----------|------|
|
||||
| `01_download.py` | OHLCV 적재 |
|
||||
| `00_sync_ops.py` | 운영 전 DB 동기화 |
|
||||
|
||||
## Ground Truth
|
||||
|
||||
| 스크립트 | 설명 |
|
||||
|----------|------|
|
||||
| `02_ground_truth.py` | 정답 타점 JSON |
|
||||
| `03_analyze_enrich.py` | 10TF 지표 enrich |
|
||||
| `03_analyze_trades.py` | GT 타점 MTF 스냅샷 CSV |
|
||||
| `03_gt_mtf_profile.py` | GT MTF 프로필 |
|
||||
| `05_chart_truth.py` | GT HTML 차트 |
|
||||
|
||||
## Simulation
|
||||
|
||||
| 스크립트 | 설명 |
|
||||
|----------|------|
|
||||
| `04_match_rules.py` | 규칙·`matched_rules.json` |
|
||||
| `04_simulation_report.py` | Go/No-Go 리포트 |
|
||||
| `04_hybrid_dd_calibrate.py` | hybrid DD tier (필요 시) |
|
||||
| `04_causal_gt_calibrate.py` | 인과 GT leg (필요 시) |
|
||||
|
||||
## Operations
|
||||
|
||||
| 스크립트 | 설명 |
|
||||
|----------|------|
|
||||
| `06_verify_live.py` | 기동 전 점검 |
|
||||
| `check_balance.py` | 빗썸 잔고 |
|
||||
| `06_execute_live.py` | 실거래 |
|
||||
| `05_run_monitor.py` | 알림만 (선택) |
|
||||
|
||||
## 검증
|
||||
|
||||
| 스크립트 | 설명 |
|
||||
|----------|------|
|
||||
| `verify_env.py` | `.env` 검증 |
|
||||
| `test_buy_sell_rehearsal.py` | hybrid 체결 제약 |
|
||||
|
||||
## 재구축
|
||||
|
||||
```bash
|
||||
python scripts/01_download.py
|
||||
python scripts/02_ground_truth.py
|
||||
python scripts/03_analyze_enrich.py
|
||||
python scripts/03_analyze_trades.py
|
||||
python scripts/04_match_rules.py
|
||||
python scripts/04_simulation_report.py # 1단계 Go/No-Go
|
||||
python scripts/05_run_monitor.py # 알림만
|
||||
python scripts/06_verify_live_dryrun.py # Phase A dry-run·tier 점검
|
||||
python scripts/06_execute_live.py # 3단계 실거래
|
||||
python scripts/05_chart_truth.py
|
||||
python scripts/05_chart_bb.py
|
||||
python scripts/verify_env.py
|
||||
python scripts/03_analyze_enrich.py && python scripts/03_analyze_trades.py && python scripts/03_gt_mtf_profile.py
|
||||
python scripts/04_match_rules.py && python scripts/04_simulation_report.py
|
||||
```
|
||||
|
||||
상세 구조: [docs/reference/STRUCTURE.md](../docs/reference/STRUCTURE.md)
|
||||
|
||||
Reference in New Issue
Block a user