Merge remote-tracking branch 'origin/glms/feature/1.4.2' into glms/feature/1.4.2

This commit is contained in:
张名锐
2026-08-10 17:59:40 +08:00
2 changed files with 3 additions and 2 deletions
@@ -71,7 +71,8 @@ namespace YLErp.Modules.SwapModule
id = 1001, SwapTradeId = 1, PositionType = (int)PositionTypeFlag.Unknown,
InterestDirection = (int)SwapDirectionEnum.,
InterestMode = (int)InterestModeEnum.,
InterestRateDefault = Rate, InterestPrincipalFix = PrepayFix,
// GetUnwindInterests 会用实时腿覆盖初始腿本金;部分平仓后这里应为剩余 60%。
InterestRateDefault = Rate, InterestPrincipalFix = PrepayRemaining,
PosiStartDate = Start, PosiMatuirityDate = new DateTime(2027, 7, 28),
IsInitial = true, Invalid = false, InterestType = (int)InterestTypeEnum.,
IsAnnualized = true, interest_rest_days = 1,
@@ -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;