#EQD-6787 国联民生-期权相关问题修复(2)PriceProvider支持债券表(Chinabondvaluation)

This commit is contained in:
yexuzhong
2026-07-31 15:06:16 +08:00
parent 633cd7d32d
commit 55b58856a5
@@ -118,8 +118,8 @@ namespace YLErp.Modules.DataProviderModule
ValueDate = ValueDate,
UnderlyingId = um.id,
UnderlyingCode = um.UnderlyingCode,
ClosePrice = (double)(eodprice.net_price ?? 0) / 100,
SettlePrice = (double)(eodprice.dirty_price_close ?? 0) / 100,
ClosePrice = (double)(eodprice.dirty_price_close ?? 0) / 100,
SettlePrice = (double)(eodprice.net_price ?? 0) / 100,
HighPrice = 0,
LowPrice = 0,
UnderlyingStatus = "正常运行",
@@ -138,15 +138,15 @@ namespace YLErp.Modules.DataProviderModule
{
if (item.UnderlyingCode != null)
{
if (item.UnderlyingInstrumentType == "Bonds")
{
// [Layer2-待统一] 债券映射口径:SettlePrice=全价(dirty_price_close)ClosePrice=净价(net_price)。
// 注意:这与 EodPriceQueryService.GetBondPrice 的映射【完全相反】(GetBondPrice: ClosePrice=全价,SettlePrice=净价)。
// 两处对"债券收盘价/结算价"的净全价定义不一致属历史遗留,请勿随意改动单侧,需业务先定调后统一(见 TryGetSettlementEodPrice 注释)。
item.SettlePrice = Convert.ToDouble(BondPriceConverter.ToStorage(item.DeciSettlePrice));
item.ClosePrice = Convert.ToDouble(BondPriceConverter.ToStorage(item.DeciClosePrice));
item.ReferencePrice = Convert.ToDouble(BondPriceConverter.ToStorage(item.DeciReferencePrice));
}
//if (item.UnderlyingInstrumentType == "Bonds")
//{
// // [Layer2-待统一] 债券映射口径:SettlePrice=全价(dirty_price_close)ClosePrice=净价(net_price)。
// // 注意:这与 EodPriceQueryService.GetBondPrice 的映射【完全相反】(GetBondPrice: ClosePrice=全价,SettlePrice=净价)。
// // 两处对"债券收盘价/结算价"的净全价定义不一致属历史遗留,请勿随意改动单侧,需业务先定调后统一(见 TryGetSettlementEodPrice 注释)。
// item.SettlePrice = Convert.ToDouble(BondPriceConverter.ToStorage(item.DeciSettlePrice));
// item.ClosePrice = Convert.ToDouble(BondPriceConverter.ToStorage(item.DeciClosePrice));
// item.ReferencePrice = Convert.ToDouble(BondPriceConverter.ToStorage(item.DeciReferencePrice));
//}
_priceDic[item.UnderlyingCode] = item;
}
}