first vibe coding

This commit is contained in:
jongjae0305
2026-05-14 15:14:50 +09:00
commit bfff65e55b
40 changed files with 2795 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
"""
strategy/base.py - 전략 추상 클래스
"""
from abc import ABC, abstractmethod
class BaseStrategy(ABC):
@abstractmethod
def check_entry(self, ticker: str, name: str,
current_price: float, **kwargs) -> dict:
"""진입 신호 체크. signal, reason, boosted, multiplier 반환"""
pass
@abstractmethod
def check_exit(self, ticker: str, entry_price: float,
current_price: float, qty: int,
tp1_done: bool, sl_pct: float) -> dict:
"""청산 신호 체크. signal, reason, qty 반환"""
pass