refactor: enhance Optuna backtesting framework, optimize orderbook filtering, and update database management utilities.
This commit is contained in:
10
scratch/check_ws_ob2.py
Normal file
10
scratch/check_ws_ob2.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from database import TradeDB
|
||||
db = TradeDB()
|
||||
try:
|
||||
sql = "SELECT source, COUNT(*) as cnt FROM ws_orderbook WHERE DATE(recv_ts) = '2026-08-10' GROUP BY source"
|
||||
rows = db.conn.execute(sql).fetchall()
|
||||
print("OB COUNT:", [dict(r) for r in rows])
|
||||
except Exception as e:
|
||||
print(f"ERROR: {e}")
|
||||
finally:
|
||||
db.close()
|
||||
Reference in New Issue
Block a user