修改行情中心数据变化失去精度问题

pull/1/head
yz 2 years ago
parent 09b18be07b
commit 464fc9256e

@ -165,7 +165,7 @@ public class ScheduledTask {
if (i == indexOfDecimal + 2) {
modifiedValue.append(stringValue.charAt(i));
} else {
randomDigit = random.nextInt(10);
randomDigit = random.nextInt(9)+1;
modifiedValue.append(randomDigit);
}
}
@ -175,6 +175,7 @@ public class ScheduledTask {
}
//监听止损止盈 根据code获取当前买卖价格 如果价格高于/低于止损止盈 则按照止损止盈的值进行平仓
//查询实训表中状态为1的所有实训并获取ID 获取持仓表中所有状态为0 且止损和止盈不为空的所有数据 获取当前价位如果
@Scheduled(cron = "0 */2 * * * ?")

Loading…
Cancel
Save