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

14
scratch/db_config_mom3.py Normal file
View File

@@ -0,0 +1,14 @@
import sys
sys.path.append('/home/hoon/kis_bot')
from database import TradeDB
def check_db():
db = TradeDB()
try:
row = db.conn.execute("SELECT STRATEGY_MOMENTUM_ENABLED, MOMENTUM_DAILY_PROFIT_HALT_NEW_BUYS FROM config_momentum ORDER BY id DESC LIMIT 1").fetchone()
print("config_momentum:", dict(row) if row else "None")
finally:
db.close()
if __name__ == "__main__":
check_db()