using DocumentFormat.OpenXml.Spreadsheet; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using YLErp.Models; namespace YLErp.Model { public class CalcBondRequest { /// /// 债券信息 /// public string bondId { get; set; } /// /// 买卖方向0买1卖 /// public string direction { get; set; } /// /// 价格 /// public string price { get; set; } /// /// 清算速度 /// // public string settleType { get; set; } = "0"; /// /// 价格类型 必填 DP(全价)CP(净价)YD(到期收益率) /// public string priceType { get; set; } = "DP"; /// /// 定价日期 /// public string valueDate { get; set; } //public string requestTime { get; set; } //public string requestId { get; set; } } public class CalcBondRequestList { public List bondCalcParamList { get; set; } } public class CalcBondReponse : ApiResponse { public CalBondResult data { get; set; } } public class CalBondResult { public int errCode { get; set; } public string errMsg { get; set; } /// /// 全价 /// public decimal dirtyPrice { get; set; } /// /// 净价 /// public decimal cleanPrice { get; set; } /// /// 收益率 /// public decimal YTM { get; set; } } }