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,22 @@
from database import TradeDB
db = TradeDB()
try:
snap = db.get_merged_env_snapshot()
updated = False
# 기본 스캔 딜레이를 0.01초 ~ 0.05초로 최적화
snap["SCAN_REJECT_SLEEP_MIN"] = "0.01"
snap["SCAN_REJECT_SLEEP_MAX"] = "0.05"
# 봇 루프 자체 딜레이도 최소화
snap["STRATEGY_LOOP_SLEEP_MIN"] = "0.01"
snap["STRATEGY_LOOP_SLEEP_MAX"] = "0.1"
updated = True
if updated:
db.insert_env_snapshot(snap)
print("Inserted new env snapshot with optimized sleep.")
finally:
db.close()