✨ 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:
@@ -0,0 +1,76 @@
|
||||
# 金融 / 债券 / 债券估值
|
||||
|
||||
## `bdV_accruedInterest(dbtype)`
|
||||
|
||||
声明:function
|
||||
|
||||
债券估值-应计利息,与系统证券pn_stock()和时间pn_date()有关
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| -------- | ------- | ------------------------------------- |
|
||||
| `dbtype` | integer | 用户自定义,数据供应商ID,含义如下表: |
|
||||
|
||||
返回:float
|
||||
|
||||
### 示例
|
||||
|
||||
范例01:返回“SH010107”在2018年5月27日,数据供应商为中证的债券估值-应计利息
|
||||
|
||||
```tsl
|
||||
Setsysparam(pn_Stock(), "SH010107");
|
||||
|
||||
SetSysParam(PN_Date(), 20180527T);
|
||||
|
||||
return bdV_AccruedInterest(0);
|
||||
// 输出:1.3422
|
||||
```
|
||||
|
||||
## `bdV_convexity(dbtype)`
|
||||
|
||||
声明:function
|
||||
|
||||
债券估值-凸性,与系统证券pn_stock()和时间pn_date()有关
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| -------- | ------- | ------------------------------------- |
|
||||
| `dbtype` | integer | 用户自定义,数据供应商ID,含义如下表: |
|
||||
|
||||
返回:float
|
||||
|
||||
### 示例
|
||||
|
||||
范例01:返回“SH010107”在2018年5月27日的债券估值-凸性
|
||||
|
||||
```tsl
|
||||
Setsysparam(pn_Stock(), "SH010107");
|
||||
|
||||
SetSysParam(PN_Date(), 20180527T);
|
||||
|
||||
ReturnbdV_Convexity(0);
|
||||
// 输出:5.1931
|
||||
```
|
||||
|
||||
## `bdV_modifiedDuration(dbtype)`
|
||||
|
||||
声明:function
|
||||
|
||||
债券估值-修正久期,与系统证券pn_stock()和时间pn_date()有关
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| -------- | ------- | ------------------------------------- |
|
||||
| `dbtype` | integer | 用户自定义,数据供应商ID,含义如下表: |
|
||||
|
||||
返回:float
|
||||
|
||||
### 示例
|
||||
|
||||
范例01:返回“SH010107”在2018年5月27日,数据供应商为中证的债券估值-修正久期
|
||||
|
||||
```tsl
|
||||
Setsysparam(pn_Stock(), "SH010107");
|
||||
|
||||
SetSysParam(PN_Date(), 20180527T);
|
||||
|
||||
return bdV_ModifiedDuration(0);
|
||||
// 输出:2.9245
|
||||
```
|
||||
Reference in New Issue
Block a user