Files
zszq-trs/YLErpDAL/Model/ClientSwapPositionRequest.cs
T
张名锐 7df9e8060e feat(swap): 添加互换合约估值功能和优化数据模型
- 在ClientSwapPositionRequest中新增BookId字段用于资产分类查询
- 新增FloatingUnrealizedPnl、InterestPaymentMethod、MaturityNettingValuation等估值相关字段
- 添加MaturitySettlementDate、DividendAmount、AdditionalMarginAmount等持仓详情字段
- 更新前端表格列模型,调整浮动端和估值实现收益分组显示
- 实现框架合约导出功能,支持完整数据筛选结果导出
- 优化名义本金计算逻辑,修复长短仓数值处理问题
- 完善付息方式和估值口径的业务逻辑处理
- 添加TRS估值、期间分红等关键业务字段计算
- 实现Excel导出时分组表头格式化功能
- 修复框架合约列排序和分组表头显示问题
2026-07-10 18:20:20 +08:00

69 lines
1.9 KiB
C#

using BaseOUDAL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YLErp.DBModels;
namespace YLErp.Model
{
/// <summary>
/// 对手方互换持仓/交易流水请求
/// </summary>
public class ClientSwapPositionRequest : BaseSearchReq
{
/// <summary>
///
/// </summary>
public DateTime? ValueDate { get; set; }
public DateTime? ValueDateFrom { get; set; }
public int? ClientId { get; set; }
public int? BookId { get; set; }
public string StructureType { get; set; }
}
/// <summary>
/// 对手方互换交易流水返回
/// </summary>
public class ClientSwapPositionResponse
{
public swap_flow_event FlowEvent { get; set; }
public string SwapTradeNo { get; set; }
public int ClientId { get; set; }
public string ClientNumber { get; set; }
public string ClientName { get; set; }
public string StructureType { get; set; }
public string ContractCode { get; set; }
/// <summary>
/// 交易费用
/// </summary>
public decimal TradeFee { get; set; }
/// <summary>
/// 交易费用后付
/// </summary>
public decimal TradingFee { get; set; }
public decimal? InitYtm { get; set; }
/// <summary>
/// 净额结算金额 互换持仓价值+待返还的预付金本金
/// </summary>
public decimal NetSettmentAmount { get; set; }
/// <summary>
/// 浮动标的代码
/// </summary>
public string FloatRateUnderlyingCode { get; set; }
public decimal PosiPnl { get; set; }
/// <summary>
/// 计息天数
/// </summary>
public decimal Days { get; set; }
public DateTime StartDate { get; set; }
}
}