fix(bond): 修复债券计算中的价格倍数应用问题
- 在BondCalcHelper调用中添加了bondShowPriceMultiple倍数转换 - 确保deal_full_price_avg在传递给债券计算器之前进行正确的价格倍数调整 - 保持原有的空值检查逻辑以确保计算安全性
This commit is contained in:
@@ -745,7 +745,7 @@ namespace YLErp.BLL.Eod
|
||||
#region 新互换实时持仓私有方法
|
||||
private static void BondCalcApi(ClientPosition clientPosition)
|
||||
{
|
||||
var resp = BondCalcHepler.BondCalc(clientPosition.security_id, clientPosition.deal_full_price_avg ?? 0, "DP");
|
||||
var resp = BondCalcHepler.BondCalc(clientPosition.security_id, clientPosition.deal_full_price_avg * ConsGlobal.bondShowPriceMultiple ?? 0, "DP");
|
||||
if (resp != null)
|
||||
{
|
||||
clientPosition.deal_yield_avg = resp.ytm * ConsGlobal.bondPriceMultiple;
|
||||
|
||||
Reference in New Issue
Block a user