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:
csh
2026-08-10 18:26:24 +08:00
parent 2938300acb
commit 9010829c6d
1186 changed files with 243901 additions and 219769 deletions
@@ -0,0 +1,258 @@
# 金融 / 债券 / 基本情况
## `bd_actualIssueAmount()`
声明:function
实际发行总额(元),与系统证券pn_stock()有关
返回:float
### 示例
范例01:返回”BK000201”的实际发行总额(元)
```tsl
SetSysParam(pn_stock(), 'BK000201'); // 设置当前证券
return bd_ActualIssueAmount();
// 输出:18000000000
```
## `bd_couponRate()`
声明:function
票面利率(%/年),与系统证券pn_stock()有关
返回:float
### 示例
范例01:返回”BK000201”的票面利率
```tsl
SetSysParam(pn_stock(), 'BK000000'); // 设置当前证券
return bd_CouponRate();
// 输出:2.8
```
## `bd_couponType()`
声明:function
息票品种,与系统股票pn_stock()有关
返回:string
## `bd_faceValue()`
声明:function
债券面值(元)
返回:integer
## `bd_interestRateType()`
声明:function
附息利率品种,与系统证券pn_stock()有关
返回:string
### 示例
范例01:结果:固定利率
```tsl
setsysparam(pn_stock(), 'BK1120018');
return bd_InterestRateType();
// 输出:固定利率
```
## `bd_listDate()`
声明:function
上市日,与系统证券pn_stock()有关
返回:integer
### 示例
范例01:返回”沪深300”的上市日
```tsl
SetSysParam(pn_stock(), 'SH000300'); // 设置当前股票
return bd_ListDate();
// 输出:20020104
```
## `bd_maturity()`
声明:function
偿还期限(年),与系统证券pn_stock()有关
返回:float
### 示例
范例01:结果:10
```tsl
setsysparam(pn_stock(), 'BK1120018');
return bd_Maturity();
// 输出:10
```
## `bd_payTimes()`
声明:function
付息频率(次/年),与系统证券pn_stock()有关
返回:integer
### 示例
范例01:返回”BK000201”的付息频率
```tsl
SetSysParam(pn_stock(), 'BK000201'); // 设置当前证券
return bd_PayTimes();
// 输出:1
```
## `bd_shares()`
声明:function
债券流通股,与系统证券pn_stock()有关
返回:float
### 示例
范例01:返回”BK000201”的债券流通股
```tsl
SetSysParam(pn_stock(), 'BK000000'); // 设置当前股票
return bd_Shares ();
// 输出:200000000
```
## `isBankBond(stock_id)`
声明:function
是否银行间债券。如果是,返回1,否则返回0 用stocktype(stockid)函数进行判断,type=18表示是银行间债券
| 参数 | 类型 | 说明 |
| ---------- | ------ | ---------------- |
| `stock_id` | string | 字符串,证券代码 |
返回:bool
### 示例
范例01:返回0,不是银行间债券
```tsl
return IsBankBond('SH010107');
// 输出:0,不是银行间债券
```
## `isBond(stock_id)`
声明:function
判断StockID是否是债券,与系统证券pn_stock()有关
| 参数 | 类型 | 说明 |
| ---------- | ------ | -------- |
| `stock_id` | string | 证券类型 |
返回:boolean
### 示例
范例01:调用函数
```tsl
// 返回" SH110003"是否是债券
return isBond("SH110003");
// 输出:1
```
## `isConvertibleBond(bond_id)`
声明:function
判断BondId是否为可转债,与系统证券pn_stock()有关
| 参数 | 类型 | 说明 |
| --------- | ------ | -------------------- |
| `bond_id` | string | 证券类型,可转债代码 |
返回:bool
### 示例
范例01:返回” SZ125002”是否是可转债
```tsl
return IsConvertibleBond("SZ125002");
// 输出:1
```
## `isCorporationBond(stock_id)`
声明:function
判断StockID是否是企业债券,与系统证券pn_stock()有关
| 参数 | 类型 | 说明 |
| ---------- | ------ | ---------------------- |
| `stock_id` | string | 证券类型,企业债券代码 |
返回:boolean
### 示例
范例01:调用函数
```tsl
// 判断 97国电债是否是企业债券
return isCorporationBond('SH129801');
// 输出:1
```
## `isGovBond(stock_id)`
声明:function
判断StockID是否是国债,与系统证券pn_stock()有关
| 参数 | 类型 | 说明 |
| ---------- | ------ | ------------------ |
| `stock_id` | string | 证券类型,国债代码 |
返回:boolean
### 示例
范例01:调用函数
```tsl
// 返回" BK000201"是否是国债
return isGovBond("BK000201");
// 输出:0
```