✨ 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:
+109
@@ -0,0 +1,109 @@
|
||||
# 金融 / 指数 / 股份回购
|
||||
|
||||
## `index_repurchaseMV(index_id, end_t, rtype, stype, ex_rate)`
|
||||
|
||||
声明:function
|
||||
|
||||
获得指定日指数成分股的累计回购金额
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `rtype` | integer | 用户自定义,回购类型 |
|
||||
| `stype` | integer | 用户自定义,股票种类 |
|
||||
| `ex_rate` | integer | 用户自定义,汇率类型 |
|
||||
|
||||
返回:integer
|
||||
|
||||
### 示例
|
||||
|
||||
范例01:"沪深300"在20241031的累计回购金额
|
||||
|
||||
```tsl
|
||||
// "沪深300"在20241031的累计回购金额
|
||||
|
||||
return Index_RepurchaseMV("SH000300", 20241031T, 0, 0, 0);
|
||||
// 输出:11107807052.2372
|
||||
```
|
||||
|
||||
## `index_repurchaseMVQJ(index_id, beg_t, end_t, rtype, stype, ex_rate)`
|
||||
|
||||
声明:function
|
||||
|
||||
获得区间指数成分股的累计回购金额
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `beg_t` | datetime | 日期,开始日期 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `rtype` | integer | 用户自定义,回购类型 |
|
||||
| `stype` | integer | 用户自定义,股票种类 |
|
||||
| `ex_rate` | integer | 用户自定义,汇率类型 |
|
||||
|
||||
返回:integer
|
||||
|
||||
### 示例
|
||||
|
||||
范例01:"申万50"在20241001到20241031的累计回购金额
|
||||
|
||||
```tsl
|
||||
// "申万50"在20241001到20241031的累计回购金额
|
||||
|
||||
return Index_RepurchaseMVQJ("SW801001", 20241001T, 20241031T, 0, 0, 0);
|
||||
// 输出:4585488988.59
|
||||
```
|
||||
|
||||
## `index_repurchaseStockNum(index_id, end_t, rtype, stype)`
|
||||
|
||||
声明:function
|
||||
|
||||
获得指定日指数成分股发生回购的家数
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `rtype` | integer | 用户自定义,回购类型 |
|
||||
| `stype` | integer | 用户自定义,股票种类 |
|
||||
|
||||
返回:integer
|
||||
|
||||
### 示例
|
||||
|
||||
范例01:"申万50"在20241031的回购家数
|
||||
|
||||
```tsl
|
||||
// "申万50"在20241031的回购家数
|
||||
|
||||
return Index_RepurchaseStockNum("SW801001", 20241031T, 0, 0);
|
||||
// 输出:8
|
||||
```
|
||||
|
||||
## `index_repurchaseStockNumQJ(index_id, beg_t, end_t, rtype, stype)`
|
||||
|
||||
声明:function
|
||||
|
||||
获得区间指数成分股发生回购的家数
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ---------- | -------- | ------------------- |
|
||||
| `index_id` | string | 指数,指数代码 |
|
||||
| `beg_t` | datetime | 日期,开始日期 |
|
||||
| `end_t` | datetime | 日期,截止日期 |
|
||||
| `rtype` | integer | 用户自定义,回购类型 |
|
||||
| `stype` | integer | 用户自定义,股票种类 |
|
||||
|
||||
返回:integer
|
||||
|
||||
### 示例
|
||||
|
||||
范例01:"申万50"在20241001到20241031的回购家数
|
||||
|
||||
```tsl
|
||||
// "申万50"在20241001到20241031的回购家数
|
||||
|
||||
return Index_RepurchaseStockNumQJ("SW801001", 20241001T, 20241031T, 0, 0);
|
||||
// 输出:9
|
||||
```
|
||||
Reference in New Issue
Block a user