📝 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,95 @@
# 金融函数 - 债券 / 中间函数
## 函数
### `bdVDataProvider(dbtype)`
债券估值-供应商类型
| 参数 | 类型 | 说明 |
| -------- | ---- | ----------------------------------- |
| `dbtype` | any | 用户自定义,数据供应商,其取值如下: |
返回:string
### `bondCoupDaysNc(goal_date, end_t, f)`
债券交易日距下一次付息日的实际天数,与系统股票相关
| 参数 | 类型 | 说明 |
| ----------- | -------- | ---------------- |
| `goal_date` | datetime | 日期类型,到期日 |
| `end_t` | datetime | 日期类型,交易日 |
| `f` | any | 整数,付息频率 |
返回:any
### `nSharesOfConvertibleBond(info_id, end_t)`
可转债流通股本,与系统股票相关
| 参数 | 类型 | 说明 |
| --------- | -------- | ------------------ |
| `info_id` | string | 整数,数据表索引号 |
| `end_t` | datetime | 日期,截止日期 |
返回:float
### `nSharesOfCorporationBond(info_id, end_t)`
企业债券流通股本,与系统股票相关
| 参数 | 类型 | 说明 |
| --------- | -------- | ------------------ |
| `info_id` | string | 整数,数据表索引号 |
| `end_t` | datetime | 日期,截止日期 |
返回:float
### `pnBonddataprovider()`
返回字符串”bdpd”,债券提供商系统参数
返回:string
### `bdVGetFactorValue(dbtype, id, settlement_date, option)`
根据ID获取债券指标
| 参数 | 类型 | 说明 |
| ----------------- | -------- | ---------------------- |
| `dbtype` | any | 用户自定义,数据提供商 |
| `id` | any | 用户自定义,债券指标 |
| `settlement_date` | datetime | 日期,结算日 |
| `option` | any | 用户自定义,选择权 |
返回:array
### `nSharesOfGovBond(info_id, end_t)`
国债流通股本,与系统股票相关
| 参数 | 类型 | 说明 |
| --------- | -------- | -------- |
| `info_id` | string | 无效参数 |
| `end_t` | datetime | 无效参数 |
返回:float
### `bondDaysbetween(begt, endt, o_ption)`
相隔天数。
| 参数 | 类型 | 说明 |
| --------- | -------- | ----------------------------------- |
| `begt` | datetime | 日期。起始日期 |
| `endt` | datetime | 日期。截止日期 |
| `o_ption` | any | 用户自定义。返回结果类型,取值如下: |
返回:any
### `pnBondStandardDate()`
债券基准公布日串,用于债券取现金流。
返回:string