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

@@ -63,6 +63,8 @@ class ScalpSearchContext:
period_days: int
portfolio: Dict[str, Any]
grid_keys: List[str]
start_key: str = ""
end_key: str = ""
ticks_by_code: Any = None
tick_rows: int = 0
tick_backtest_meta: Dict[str, Any] = field(default_factory=dict)
@@ -279,6 +281,8 @@ def prepare_scalp_search_context(
period_days=period_days,
portfolio=portfolio,
grid_keys=scalp_grid_axis_keys(mode),
start_key=start_key,
end_key=end_key,
ticks_by_code=ticks_by_code,
tick_rows=int(tick_rows),
tick_backtest_meta=tick_backtest_meta,
@@ -352,6 +356,8 @@ def run_scalp_optuna(
ticks_by_code=ctx.ticks_by_code,
orderbook_by_code=ctx.orderbook_by_code,
program_by_code=ctx.program_by_code,
start_key=ctx.start_key,
end_key=ctx.end_key,
)
if result is None:
trial.set_user_attr("gates_ok", False)
@@ -478,6 +484,8 @@ def run_scalp_optuna(
ticks_by_code=ctx.ticks_by_code,
orderbook_by_code=ctx.orderbook_by_code,
program_by_code=ctx.program_by_code,
start_key=ctx.start_key,
end_key=ctx.end_key,
)
def _save_partial(_data: Dict[str, Any]) -> None: