모의투자 관리 기능 추가
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
package com.goldenchart.scheduler;
|
||||
|
||||
import com.goldenchart.service.PaperSnapshotService;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.scheduling.annotation.Scheduled;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
@RequiredArgsConstructor
|
||||
@Slf4j
|
||||
public class PaperSnapshotScheduler {
|
||||
|
||||
private final PaperSnapshotService snapshotService;
|
||||
|
||||
/** KST 00:05 — 일별 자산 스냅샷 */
|
||||
@Scheduled(cron = "0 5 0 * * *", zone = "Asia/Seoul")
|
||||
public void captureDailySnapshots() {
|
||||
log.info("[PaperSnapshotScheduler] EOD snapshot start");
|
||||
snapshotService.captureEodForAllAccounts();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user