GT MTF 프로필·캘리브레이션과 04 매칭/시뮬/실거래 파이프라인을 추가한다.
3분~일봉 GT 타점 분석(03c), leg 체결 순서 수정, 총자산 90% 검증 루프, walk-forward Go/No-Go 시뮬, monitor·live_trader 및 reference 문서를 포함한다. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
22
scripts/06_execute_live.py
Normal file
22
scripts/06_execute_live.py
Normal file
@@ -0,0 +1,22 @@
|
||||
#!/usr/bin/env python3
|
||||
"""3단계: 실거래 (monitor_rules + 빗썸 주문). LIVE_TRADING_ENABLED=1 필수."""
|
||||
import argparse
|
||||
import runpy
|
||||
from pathlib import Path
|
||||
|
||||
runpy.run_path(str(Path(__file__).resolve().parent / "_bootstrap.py"))
|
||||
|
||||
from config import LIVE_TRADING_ENABLED, MONITOR_LOOP_SLEEP_SEC
|
||||
from deepcoin.ops.live_trader import LiveTrader
|
||||
|
||||
if __name__ == "__main__":
|
||||
parser = argparse.ArgumentParser(description="WLD 실거래 (06)")
|
||||
parser.add_argument("--once", action="store_true", help="1회만 실행")
|
||||
args = parser.parse_args()
|
||||
trader = LiveTrader()
|
||||
if not LIVE_TRADING_ENABLED:
|
||||
print("주의: LIVE_TRADING_ENABLED=0 — 주문 없이 dry_run 로그만")
|
||||
if args.once:
|
||||
trader.run_once()
|
||||
else:
|
||||
trader.run_loop(MONITOR_LOOP_SLEEP_SEC)
|
||||
Reference in New Issue
Block a user