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; }
///
/// 价格
///
public string price { get; set; }
///
/// 价格类型 必填 DP(全价)CP(净价)YD(到期收益率)
///
public string priceType { get; set; } = "DP";
public string targetDate { 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; }
}
}