Merge remote-tracking branch 'origin/glms/feature/1.4.2' into glms/feature/1.4.2-margin
This commit is contained in:
@@ -65,6 +65,13 @@ namespace YLErp.DBModels
|
||||
[DisplayName("实际付息(兑付)日")]
|
||||
[Column("pay_date_act")]
|
||||
public DateTime? payment_date { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 债权登记日(除息/归属截止日)——票息归属按此判定,而非支付日
|
||||
/// </summary>
|
||||
[DisplayName("债权登记日")]
|
||||
[Column("reg_date")]
|
||||
public DateTime? reg_date { get; set; }
|
||||
/// <summary>
|
||||
/// 每张兑付利息额
|
||||
/// </summary>
|
||||
|
||||
@@ -205,7 +205,7 @@ namespace YLErp.DBModels
|
||||
[DataChange]
|
||||
public int InterestDirection { get; set; }
|
||||
/// <summary>
|
||||
/// 计息基本类型 1:固定值,2:合约名义本金规模,3:持仓名义本金,4:持仓市值,5:初始预付金,6:追加预付金
|
||||
/// 计息基本类型 1:固定值,2:合约名义本金规模,5:初始预付金,6:追加预付金,9:标的期初全价
|
||||
/// </summary>
|
||||
[DisplayName("计息基本类型")]
|
||||
[DataChange]
|
||||
|
||||
@@ -280,7 +280,7 @@ namespace YLErp.DBModels
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 计息方式 1:固定值,2:合约名义本金规模,3:持仓名义本金,4:持仓市值
|
||||
/// 计息方式 1:固定值,2:合约名义本金规模,5:初始预付金,6:追加预付金,9:标的期初全价
|
||||
/// </summary>
|
||||
[DisplayName("计息方式")]
|
||||
[DataChange]
|
||||
|
||||
@@ -163,7 +163,7 @@ namespace YLErp.DBModels
|
||||
/// </summary>
|
||||
public string FloatRateUnderlyingCode { get; set; }
|
||||
/// <summary>
|
||||
/// 计息基本类型 1:固定值,2:合约名义本金规模,3:持仓名义本金,4:持仓市值,5:初始预付金,6:追加预付金
|
||||
/// 计息基本类型 1:固定值,2:合约名义本金规模,5:初始预付金,6:追加预付金,9:标的期初全价
|
||||
/// </summary>
|
||||
[DisplayName("计息基本类型")]
|
||||
[DataChange]
|
||||
|
||||
@@ -18,7 +18,7 @@ public readonly struct AccrualContext
|
||||
/// <summary>年化天数(365 / 360)。</summary>
|
||||
public int AnnualDays { get; }
|
||||
|
||||
/// <summary>舍入精度位数。默认 11(保证金腿);资金腿调用方应显式传 FundingLegPrecision=12。</summary>
|
||||
/// <summary>舍入精度位数。默认 11(仅未接线的 MarginAccount.AccrueInterest 走此默认;生产融资腿/保证金腿均显式用 FundingLegPrecision=12)。</summary>
|
||||
public int Precision { get; }
|
||||
|
||||
/// <summary>可选 trace 收集器;为 null 时不记录(纯计算场景直接传 null,与开关无关)。</summary>
|
||||
|
||||
@@ -53,7 +53,7 @@ public readonly struct InterestRate
|
||||
/// <list type="bullet">
|
||||
/// <item><description><see cref="Compounding.Simple"/>:decimal 精确运算。</description></item>
|
||||
/// <item><description><see cref="Compounding.Compounded"/> / <see cref="Compounding.Continuous"/>:闭式(double 计算后回 decimal),
|
||||
/// 满足通用定价 / 保证金场景;若要 decimal 精度的离散重置日复利,请用 Simple 按段计息并滚动本金。</description></item>
|
||||
/// 满足通用定价;若要 decimal 精度的离散重置日复利,请用 Simple 按段计息并滚动本金。</description></item>
|
||||
/// </list>
|
||||
/// </summary>
|
||||
public decimal CompoundFactor(decimal t)
|
||||
|
||||
@@ -106,11 +106,11 @@ public readonly struct InterestResult
|
||||
/// </summary>
|
||||
public static class SwapInterest
|
||||
{
|
||||
/// <summary>系统统一价格精度位数(保证金腿)。</summary>
|
||||
/// <summary>默认舍入精度位数(历史值;生产融资腿与保证金腿均用 FundingLegPrecision=12)。</summary>
|
||||
public const int Precision = 11;
|
||||
|
||||
/// <summary>资金腿计息精度(生产口径)。资金腿所有落库/对账均以 12 位为准,
|
||||
/// 与保证金腿的 Precision=11 不同。提升至公共常量,消除 SwapDealService 与 FundingLegAccrual 的重复定义。</summary>
|
||||
/// <summary>资金腿与保证金腿的生产计息精度(落库/对账均以 12 位为准)。
|
||||
/// 提升至公共常量,消除 SwapDealService 与 SimpleInterestAccrual 的重复定义。</summary>
|
||||
public const int FundingLegPrecision = 12;
|
||||
|
||||
/// <summary>年化天数常量(合约字段存的是 int,故不用 enum)。</summary>
|
||||
|
||||
Reference in New Issue
Block a user