跳到主要内容

PRICEMAT

返回到期支付利息的有价证券每 $100 面值的价格。

语法

expression.PRICEMAT(arg1, arg2, arg3, arg4, arg5, arg6);

expression - 表示 ApiWorksheetFunction 类的变量。

参数

名称必需/可选数据类型默认值描述
arg1必需ApiRange | ApiName | number证券的结算日期,以序列日期数字表示。
arg2必需ApiRange | ApiName | number证券的到期日,以序列日期数字表示。
arg3必需ApiRange | ApiName | number证券的发行日期,以序列日期数字表示。
arg4必需ApiRange | ApiName | number证券在发行日的利率。
arg5必需ApiRange | ApiName | number证券的年收益率。
arg6可选ApiRange | ApiName | number要使用的日计数基准:0 或省略 - 美国 (NASD) 30/360;1 - 实际/实际;2 - 实际/360;3 - 实际/365;4 - 欧洲 30/360。

返回值

number

示例

查找电子表格中到期支付利息的债券价格。

// What is the price of a security that pays interest only at maturity in a spreadsheet?

// Calculate the cost of a maturity-interest security based on settlement and yield in a spreadsheet.

let worksheet = Api.GetActiveSheet();
let func = Api.WorksheetFunction;
worksheet.GetRange("A1").SetValue(func.PRICEMAT("1/1/2017", "6/1/2019", "12/1/2016", 0.05, 0.09, 1));