📝 docs(tsl): add generated codegen reference

This commit is contained in:
csh
2026-07-07 16:34:27 +08:00
parent 014c23d386
commit 7046f0b60e
632 changed files with 160584 additions and 0 deletions
@@ -0,0 +1,25 @@
# 金融函数 - 债券 / 债券组合
## 函数
### `pfBasisPointValue(w, settlement_date)`
债券组合基点价值 1)计算w中各债券的基点价值 2)累加w中债券的基点价值即债券组合的基点价值
| 参数 | 类型 | 说明 |
| ----------------- | -------- | -------------------------------------------- |
| `w` | array | 二维数组,债券组合代码,代码列名必须是“代码” |
| `settlement_date` | datetime | 日期,结算日 |
返回:float
### `pfBondYieldToMaturity(w, settlement_date)`
债券组合到期收益率(%) 1)计算w中各债券的到期收益率(%)YTMi 2)累加YTMi \*w中的债券比例
| 参数 | 类型 | 说明 |
| ----------------- | -------- | --------------------------------------------------------- |
| `w` | array | 二维数组,债券组合,数组中的数据必须有“代码”、“比例(%)”列 |
| `settlement_date` | datetime | 结算日 |
返回:float