Files
playbook/skills/tsl-api-reference/references/codegen/dotnet/financial/bond-bond_yield_curve-intermediate.md
T

1.3 KiB

金融 / 债券 / 债券收益率曲线 / 中间函数

getBondSYLQKByTypeAndYears(begt, endt, ayear, p_bond_id)

声明:function

返回区间债券对应年期的到期收益率

参数 类型 说明
begt datetime 日期。起始日期
endt datetime 日期。截止日期
ayear float 实数。年限
p_bond_id string 字符串。债券种类代码

返回:array

示例

范例01:调用 GetBondSYLQKByTypeAndYears

return GetBondSYLQKByTypeAndYears(20150101T, 20181231T, 10, 'BTS000033');

getBondTermStructureByRemainDuration(type, remain_duration)

声明:function

返回指定日指定剩余期限债券收益率数据,与系统股票相关

参数 类型 说明
type int 用户自定义,收益率曲线类型,其取值如下:
remain_duration float 实数,剩余期限(年)

返回:float