using BaseOUDAL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YLErp.DBModels;
namespace YLErp.Model
{
///
/// 对手方互换持仓/交易流水请求
///
public class ClientSwapPositionRequest : BaseSearchReq
{
///
/// 估值日。每日估值报告的互换估值查询当前按该日期精确筛选,
/// 交易日期同时不得晚于该日期。
///
public DateTime? ValueDate { get; set; }
///
/// 请求携带的估值日下界。互换持仓明细、交易流水等调用方可使用该字段;
/// 当前 GetSearchEodPositionList 未启用该下界,仍是单日估值查询。
///
public DateTime? ValueDateFrom { get; set; }
///
/// 对手方筛选条件。为空时不按对手方收窄结果。
///
public int? ClientId { get; set; }
///
/// 簿记账户筛选条件,对应 trade.AssetId;为空时包含该对手方下全部簿记账户。
///
public int? BookId { get; set; }
///
/// 调用方传入的结构类型。互换估值查询当前固定同时覆盖普通债券类收益互换和普通收益互换。
///
public string StructureType { get; set; }
}
///
/// 对手方互换交易流水返回
///
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; }
///
/// 交易费用
///
public decimal TradeFee { get; set; }
///
/// 交易费用后付
///
public decimal TradingFee { get; set; }
public decimal? InitYtm { get; set; }
///
/// 净额结算金额 互换持仓价值+待返还的预付金本金
///
public decimal NetSettmentAmount { get; set; }
///
/// 浮动标的代码
///
public string FloatRateUnderlyingCode { get; set; }
public decimal PosiPnl { get; set; }
///
/// 计息天数
///
public decimal Days { get; set; }
public DateTime StartDate { get; set; }
}
}