from config import KR_COINS, KR_COINS_2
from monitor_coin_1min_base import LiveOneMinuteStrategy


class OneMinuteMonitorGroup2(LiveOneMinuteStrategy):
    """KR_COINS_2 그룹 대상 1분봉 실전 매매 모니터."""

    def __init__(self) -> None:
        coins = {symbol: KR_COINS[symbol] for symbol in KR_COINS_2.keys()}
        super().__init__(
            coins=coins,
            cooldown_file="./resources/coins_buy_time_1min_2.json",
            position_file="./resources/coins_positions_1min_2.json",
            entry_max_len=3,
            grid_limit=4,
            random_trials=4,
            sleep_seconds=0.5,
            max_order_krw=200_000,
        )


if __name__ == "__main__":
    OneMinuteMonitorGroup2().run_schedule(interval_seconds=30)

