매매시 현재가 적용

This commit is contained in:
Macbook
2026-06-23 00:12:23 +09:00
parent 351c5600b8
commit 6e86ec7ecb
16 changed files with 221 additions and 79 deletions
@@ -492,16 +492,7 @@ public class PaperTradingService {
}
public double resolveMarkPrice(String symbol) {
try {
if (!ta4jStorage.exists(symbol, "1m")) return 0;
BarSeries series = ta4jStorage.getOrCreate(symbol, "1m");
if (!series.isEmpty()) {
Bar last = series.getLastBar();
return last.getClosePrice().doubleValue();
}
} catch (Exception ignored) {
}
return 0;
return TradeExecutionPriceSupport.resolveLiveExecutionPrice(ta4jStorage, symbol, "1m", null);
}
public PaperSummaryDto resetAccount(Long userId) {