feat: Add DART strategy and related configurations

ㅇ
Changes:
- Introduced the DART strategy to the trading system, including its configuration and integration into the existing framework.
- Updated the database schema to include DART-specific tables for disclosures and watchlists.
- Enhanced the backtesting and parameter search functionalities to support the DART strategy.
- Implemented new rules for browser verification and API interactions to ensure compliance with the updated DART strategy.

Impact:
- These additions expand the trading capabilities of the system, allowing for more comprehensive analysis and execution of DART-related strategies, while maintaining system integrity and performance.
This commit is contained in:
Your Name
2026-07-21 07:50:24 +09:00
parent 74db49149f
commit 61bec4bd1d
86 changed files with 4811 additions and 297 deletions

View File

@@ -294,11 +294,15 @@ def resolve_tail_universe(
if use_saved_history and strategy_id:
try:
from kis_trader.database.db_manager import get_db as _get_ext_db
from kis_trader.backtest.universe_timeline import (
universe_exit_debounce_sec_for_strategy,
)
history = _get_ext_db().get_universe_by_candle_time(
strategy_id=strategy_id,
start_ymd=start_ymd,
end_ymd=end_ymd,
exit_debounce_sec=universe_exit_debounce_sec_for_strategy(strategy_id),
)
if history:
return history, "history", len(history), 1
@@ -698,12 +702,9 @@ def run_tail_backtest_web_aligned(
if len(_sk) >= 8 and len(_ek) >= 8:
from kis_trader.backtest.universe_timeline import (
build_universe_timeline,
resolve_universe_exit_debounce_sec,
)
_deb = resolve_universe_exit_debounce_sec(
strategy_env_key="TAIL_UNIVERSE_EXIT_DEBOUNCE_SEC",
default_when_no_grace=0,
universe_exit_debounce_sec_for_strategy,
)
_deb = universe_exit_debounce_sec_for_strategy(TAIL_STRATEGY_ID)
_tl = build_universe_timeline(
strategy_id=TAIL_STRATEGY_ID,
start_ymd=_sk[:8], end_ymd=_ek[:8],