refactor: enhance Optuna backtesting framework, optimize orderbook filtering, and update database management utilities.
This commit is contained in:
9
scratch/check_ws_ob3.py
Normal file
9
scratch/check_ws_ob3.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from database import TradeDB
|
||||
db = TradeDB()
|
||||
try:
|
||||
cnt = db.conn.execute("SELECT COUNT(*) as cnt FROM ws_orderbook").fetchone()['cnt']
|
||||
print(f"Total ws_orderbook rows: {cnt}")
|
||||
except Exception as e:
|
||||
print(f"ERROR: {e}")
|
||||
finally:
|
||||
db.close()
|
||||
Reference in New Issue
Block a user