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:
@@ -558,6 +558,10 @@ class UpdowStrategy(BaseStrategy):
|
||||
tf_code = self._candle_tf_for_code(code)
|
||||
candles_raw = self.ws.get_candles(code, tf_code, n=n_fetch)
|
||||
if len(candles_raw) < min_len:
|
||||
try:
|
||||
self.ws.fill_gap([code], force=True)
|
||||
except Exception:
|
||||
pass
|
||||
self.logger.info(
|
||||
"🔍 [탈락-봉부족] %s %s: WS확정봉 %d개 (최소 %d, tf=%d)",
|
||||
name, code, len(candles_raw), min_len, tf_code,
|
||||
|
||||
Reference in New Issue
Block a user