모의투자 로직 변경
This commit is contained in:
@@ -48,7 +48,8 @@ public class LiveStrategyScheduler {
|
||||
*/
|
||||
@Scheduled(fixedDelay = 3000)
|
||||
public void tick() {
|
||||
List<GcLiveStrategySettings> activeSettings = settingsRepo.findAllByIsLiveCheckTrue();
|
||||
List<GcLiveStrategySettings> activeSettings =
|
||||
settingsRepo.findAllByIsLiveCheckTrueAndUserIdIsNotNull();
|
||||
if (activeSettings.isEmpty()) return;
|
||||
|
||||
for (GcLiveStrategySettings s : activeSettings) {
|
||||
@@ -104,9 +105,9 @@ public class LiveStrategyScheduler {
|
||||
lastBar.getClosePrice().doubleValue(),
|
||||
barStartEpoch, candleType, "REALTIME_TICK"
|
||||
);
|
||||
if (s.getDeviceId() != null) {
|
||||
if (s.getUserId() != null) {
|
||||
orderExecutionQueue.submitSignal(
|
||||
s.getDeviceId(), s.getUserId(), market,
|
||||
s.getUserId(), market,
|
||||
s.getStrategyId(), signal,
|
||||
lastBar.getClosePrice().doubleValue());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user