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

@@ -0,0 +1,19 @@
from database import TradeDB
db = TradeDB()
try:
sql = """
SELECT
source, COUNT(*) as cnt
FROM ws_ticks
WHERE DATE(recv_ts) = '2026-08-10'
GROUP BY source;
"""
rows = db.conn.execute(sql).fetchall()
import json
print("\n--- ws_ticks source count Today ---")
for r in rows:
print(json.dumps(dict(r)))
finally:
db.close()