跳到主要内容

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

示例

此示例演示如何返回到期付息证券的每 100 美元面值价格。

// How to return the price per $100 face value by interest at maturity.

// Use a function to return the price per $100 face value for a security that pays maturity interest.

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));