매매시 현재가 적용
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user