feat(tsl-api-reference): expand and reorganize api catalog

Flatten builtin pages, add third-party and platform scopes, and import financial and data warehouse references.

Keep the existing generated index without rebuilding after signature normalization.
This commit is contained in:
csh
2026-08-10 18:26:24 +08:00
parent 2938300acb
commit 9010829c6d
1186 changed files with 243901 additions and 219769 deletions
@@ -0,0 +1,40 @@
# 金融 / 债券 / 债券组合
## `pf_basisPointValue(w, settlement_date)`
声明:function
债券组合基点价值 1)计算w中各债券的基点价值 2)累加w中债券的基点价值即债券组合的基点价值
| 参数 | 类型 | 说明 |
| ----------------- | -------- | -------------------------------------------- |
| `w` | array | 二维数组,债券组合代码,代码列名必须是“代码” |
| `settlement_date` | datetime | 日期,结算日 |
返回:float
## `pf_bondRemainDuration(w, settlement_date)`
声明:function
债券组合剩余期限 1)计算w中各债券的剩余期限RDi 2)累加RDi\*w中的债券比例
| 参数 | 类型 | 说明 |
| ----------------- | -------- | --------------------------------------------------------- |
| `w` | array | 二维数组,债券组合,数组中的数据必须有“代码”、“比例(%)”列 |
| `settlement_date` | datetime | 日期,结算日 |
返回:float
## `pf_bondYieldToMaturity(w, settlement_date)`
声明:function
债券组合到期收益率(%) 1)计算w中各债券的到期收益率(%)YTMi 2)累加YTMi \*w中的债券比例
| 参数 | 类型 | 说明 |
| ----------------- | -------- | --------------------------------------------------------- |
| `w` | array | 二维数组,债券组合,数组中的数据必须有“代码”、“比例(%)”列 |
| `settlement_date` | datetime | 结算日 |
返回:float