refactor: enhance Optuna backtesting framework, optimize orderbook filtering, and update database management utilities.

This commit is contained in:
Your Name
2026-08-12 10:19:19 +09:00
parent cb7e5037a0
commit c6bd62a25f
218 changed files with 31613 additions and 759 deletions

View File

@@ -305,8 +305,8 @@ def _ensure_token(mock: bool) -> str:
"""
KisTokenManager 싱글톤으로 토큰 반환.
- 유효하면 메모리 캐시 즉시 반환
- 만료 10분 선제 갱신 후 반환
- KIS 23시간 정책 자동 준수
- 완전 만료 시에만 비상 갱신 (장중 10분 선제 발급 없음)
- 장전 ensure_both / 08:00 타이머가 1일1회 원칙으로 선확보
"""
try:
from kis_token_manager import KisTokenManager