✨ 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:
+72
@@ -0,0 +1,72 @@
|
||||
# 金融 / 债券 / 债券收益率 / 应计利息
|
||||
|
||||
## `bondAccruedInterest5(par, coupon, t)`
|
||||
|
||||
声明:function
|
||||
|
||||
交易所债券-周期性付息或者到期一次还本付息的应计利息
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| -------- | ----- | ----------------- |
|
||||
| `par` | float | 实数。剩余本金 |
|
||||
| `coupon` | float | 实数。本期利率(%) |
|
||||
| `t` | int | 整数。已计息天数 |
|
||||
|
||||
返回:float
|
||||
|
||||
## `bondCouponExt(settlement_date)`
|
||||
|
||||
声明:function
|
||||
|
||||
债券-结算日票面利率,与系统股票pn_stock()有关
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ----------------- | -------- | ---------------- |
|
||||
| `settlement_date` | datetime | 日期类型,结算日 |
|
||||
|
||||
返回:float
|
||||
|
||||
### 示例
|
||||
|
||||
范例01:调用函数
|
||||
|
||||
```tsl
|
||||
Setsysparam(pn_Stock(), "BK000000");
|
||||
return BondCouponExt(20120703T);
|
||||
```
|
||||
|
||||
## `bondFutureValue()`
|
||||
|
||||
声明:function
|
||||
|
||||
到期兑付日债券本息和,与系统股票pn_stock()有关
|
||||
|
||||
返回:real
|
||||
|
||||
### 示例
|
||||
|
||||
范例01:调用函数
|
||||
|
||||
```tsl
|
||||
// 返回' BK000002'的到期兑付日债券本息和
|
||||
setSysParam(PN_Stock(), 'BK000002');
|
||||
return bondFutureValue();
|
||||
// 输出:102.8
|
||||
```
|
||||
|
||||
## `mid_bondAccruedInterest(endt, cash_flow, f, pd, option, method_type)`
|
||||
|
||||
声明:function
|
||||
|
||||
MID_BondAccruedInterest 相关函数
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ------------- | -------- | ------------------------------- |
|
||||
| `endt` | datetime | 日期。指定日期 |
|
||||
| `cash_flow` | array | 数组。指定日期未来现金流 |
|
||||
| `f` | integer | 整数。付息频率 |
|
||||
| `pd` | float | 实数。发行价 |
|
||||
| `option` | integer | 用户自定义。返回类型,取值如下: |
|
||||
| `method_type` | integer | 用户自定义。调用类型,取值如下: |
|
||||
|
||||
返回:float
|
||||
Reference in New Issue
Block a user