fix(期权到期): checkEodPrice 前置校验改用债券感知统一取价方法
- trade_cashController.checkEodPrice 是前端'执行到期'按钮的前置 gate,
原用 EodPriceQueryService.TryGetEodPrice(仅查期货+股票两表),
债券标的(如 GLMS-20260715-0002 / 180011.IB)必然取不到价而报
'交易日{date}的结算价或收盘价未找到',挡在 tradeExpireConfirm 之前,
导致层1 对 tradeExpireInner/MultipleTradeExpireConfirm 的修复被绕过。
- 改为与层1 一致的 EodPriceQueryService.TryGetSettlementEodPrice
(债券走中债估值、期货/股票走原路径),三处到期取价口径统一。
This commit is contained in:
@@ -148,7 +148,7 @@ namespace YLErp.Web.Controllers
|
||||
{
|
||||
valueDate = QdpCalendarHelper.GetNonHolidayDefore(valueDate);
|
||||
}
|
||||
if (!EodPriceQueryService.TryGetEodPrice(valueDate, td.UnderlyingCode, out _))
|
||||
if (!EodPriceQueryService.TryGetSettlementEodPrice(valueDate, td.UnderlyingCode, out _))
|
||||
{
|
||||
return JsonError($"交易日{valueDate:yyyy-MM-dd}的结算价或收盘价未找到!");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user