✨ 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:
+132
@@ -0,0 +1,132 @@
|
||||
# 金融 / 债券 / 中间函数 / 其他
|
||||
|
||||
## `bondEndOftheYear_calculator(settlement_date, dated_date, maturity_date)`
|
||||
|
||||
声明:function
|
||||
|
||||
计息年度的截止日期
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ----------------- | -------- | ------ |
|
||||
| `settlement_date` | datetime | 结算日 |
|
||||
| `dated_date` | datetime | 起息日 |
|
||||
| `maturity_date` | datetime | 到期日 |
|
||||
|
||||
返回:datetime
|
||||
|
||||
## `bondNextCouponDate_calculator(settlement_date, dated_date, maturity_date)`
|
||||
|
||||
声明:function
|
||||
|
||||
下一个付息日(中间函数)
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ----------------- | -------- | ------ |
|
||||
| `settlement_date` | datetime | 结算日 |
|
||||
| `dated_date` | datetime | 起息日 |
|
||||
| `maturity_date` | datetime | 到期日 |
|
||||
|
||||
返回:datetime
|
||||
|
||||
## `bondNumbersBetween(beg_t, end_t, frequency)`
|
||||
|
||||
声明:function
|
||||
|
||||
结算日至到期日的债券付息次数(中间函数)
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ----------- | -------- | -------------- |
|
||||
| `beg_t` | datetime | 日期,开始日期 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `frequency` | int | 整数,频率 |
|
||||
|
||||
返回:int
|
||||
|
||||
## `bondNumbersBetweenSettlementandFutureDay(end_t, future_t)`
|
||||
|
||||
声明:function
|
||||
|
||||
评估日与未来评估日之间的付息次数
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ---------- |
|
||||
| `end_t` | datetime | 评估日 |
|
||||
| `future_t` | datetime | 未来评估日 |
|
||||
|
||||
返回:int
|
||||
|
||||
## `bondPreviousCouponDate_calculator(settlement_date, dated_date, maturity_date)`
|
||||
|
||||
声明:function
|
||||
|
||||
上一付息日(中间函数)
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ----------------- | -------- | ------ |
|
||||
| `settlement_date` | datetime | 结算日 |
|
||||
| `dated_date` | datetime | 起息日 |
|
||||
| `maturity_date` | datetime | 到期日 |
|
||||
|
||||
返回:datetime
|
||||
|
||||
## `bondYearsBetween(beg_t, end_t)`
|
||||
|
||||
声明:function
|
||||
|
||||
两个日期之间的整年数
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ------- | -------- | -------------- |
|
||||
| `beg_t` | datetime | 日期,开始日期 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
|
||||
返回:int
|
||||
|
||||
## `tEncodeDate(y, m, d)`
|
||||
|
||||
声明:function
|
||||
|
||||
年月日组合成日期
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---- | ---- | -------- |
|
||||
| `y` | int | 整数,年 |
|
||||
| `m` | int | 整数,月 |
|
||||
| `d` | int | 整数,日 |
|
||||
|
||||
返回:t_data_time
|
||||
|
||||
### 示例
|
||||
|
||||
范例01:结果:40952
|
||||
|
||||
```tsl
|
||||
return TEncodeDate(2012, 2, 13);、
|
||||
|
||||
// 显示为日期时间:2012-02-13
|
||||
// 输出:40952
|
||||
```
|
||||
|
||||
## `tEncodeDate2(day, d)`
|
||||
|
||||
声明:function
|
||||
|
||||
日期与日重组
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ----- | ----------- | -------------- |
|
||||
| `day` | t_data_time | 日期类型,日期 |
|
||||
| `d` | int | 整数,日 |
|
||||
|
||||
返回:t_data_time
|
||||
|
||||
### 示例
|
||||
|
||||
范例01:结果:40970
|
||||
|
||||
```tsl
|
||||
return TEncodeDate2(20120317T, 2);
|
||||
|
||||
// 显示为日期时间:2012-03-02
|
||||
// 输出:40970
|
||||
```
|
||||
Reference in New Issue
Block a user