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

@@ -5,6 +5,7 @@
"""
from __future__ import annotations
import os
from datetime import datetime
from typing import Any, Dict, List, Optional, Tuple
@@ -175,6 +176,8 @@ def load_scalp_candles_by_code(
)
return candles_by_code, total_candles
candle_src = os.environ.get("CANDLE_SOURCE", "kis") or "kis"
codes_raw = db.conn.execute(
"SELECT DISTINCT code FROM ws_candles WHERE timeframe=1 "
"AND candle_time >= %s AND candle_time <= %s ORDER BY code",