📝 docs(tsl): sync api skill with corrected codegen

Mirror docs/tsl/codegen into the bundled tsl-api-reference skill and rebuild the function index.

Remove invalid duplicate API entries for cb_delistedbydate, createhttpsession, exportJsonString, and Anova_Bartlett so exact lookup returns the canonical entries.
This commit is contained in:
csh
2026-07-07 16:47:03 +08:00
parent bbf6977f57
commit c0bf0358e0
278 changed files with 45212 additions and 35782 deletions
@@ -1,6 +1,6 @@
# 财务基本面 / 数据库提供商
### `appField(field_n)`
## `APP_Field(field_n)`
预付帐款帐龄字段。根据参数FieldN的取值从数据表中获得相应的字段
@@ -10,43 +10,43 @@
返回:string
### `cbNotIncludeCurrentInterest()`
## `CB_NotIncludeCurrentInterest()`
CB_NotIncludeCurrentInterest 相关函数。
返回:string
### `cbResalePeriodConversionPeriod()`
## `CB_ResalePeriodConversionPeriod()`
CB_ResalePeriodConversionPeriod 相关函数。
返回:string
### `cuCodeField()`
## `CU_CodeField()`
代码字段。
返回:string
### `cuDeclareDateField()`
## `CU_DeclareDateField()`
公布日字段。
返回:string
### `cuNumberField()`
## `CU_NumberField()`
个数字段。
返回:string
### `dataBaseRatioIdCaihui()`
## `DataBaseRatioId_caihui()`
caihui常用的财务比率分析数据
返回:array
### `dataBaseRatioIdLido(id)`
## `DataBaseRatioId_Lido(id)`
Lido常用的财务比率分析数据
@@ -56,13 +56,13 @@ Lido常用的财务比率分析数据
返回:array
### `dbNumeratorValue()`
## `dbNumeratorValue()`
基本面单位
返回:int
### `feField(field_n)`
## `FE_Field(field_n)`
财务费用字段。根据参数FieldN的取值从数据表中获得相应的字段
@@ -72,127 +72,127 @@ Lido常用的财务比率分析数据
返回:string
### `fundAaDepositField()`
## `Fund_AADepositField()`
资产配置-银行存款和清算备付金。根据数据库提供商返回对应的值
返回:string
### `fundBsgzField()`
## `Fund_BSGZField()`
债券配置-央行票据。根据数据库提供商返回对应的值
返回:string
### `fundElFistDeclareDateField()`
## `Fund_ELFistDeclareDateField()`
基金扩募-首次信息发布日。根据数据库提供商返回对应的值
返回:string
### `fundElVolField()`
## `Fund_ELVolField()`
基金扩募-扩募份额。根据数据库提供商返回对应的值
返回:string
### `fundIcIndustryNameField()`
## `Fund_ICIndustryNameField()`
基金行业投资-行业名称。根据数据库提供商返回对应的值
返回:string
### `fundManagerBegDateField()`
## `FundManager_BegDateField()`
基金经理-到任日期。根据数据库提供商返回对应的值
返回:string
### `fundMshAmountField()`
## `Fund_MSHAmountField()`
基金主要持有人-期末持有数。根据数据库提供商返回对应的值
返回:string
### `fundMshPercentageField()`
## `Fund_MSHPercentageField()`
基金主要持有人-比例(%)。根据数据库提供商返回对应的值
返回:string
### `fundNawlAccumulativeNetAssetField()`
## `Fund_NAWLAccumulativeNetAssetField()`
基金净值-累计净值。根据数据库提供商返回对应的值
返回:string
### `fundNawlEndDateField()`
## `Fund_NAWLEndDateField()`
基金净值-截止日。根据数据库提供商返回对应的值
返回:string
### `fundNawmwfjjdwsyField()`
## `Fund_NAWMWFJJDWSYField()`
基金净值-每万份基金单位收益。根据数据库提供商返回对应的值
返回:string
### `fundPjTzfgField()`
## `FundPJ_TZFGField()`
海通评级-基金类型。
返回:string
### `infoArrayLido()`
## `InfoArray_Lido()`
Lido数据表对照表
返回:array
### `mshKfjjField()`
## `MSH_KFJJField()`
主要持有人-开放式投资基金。根据数据库提供商返回对应的值
返回:string
### `mshNameField()`
## `MSH_NameField()`
股东-股东名称。根据数据库提供商返回对应的值
返回:string
### `rbyMainIncomePercentField()`
## `RBY_MainIncomePercentField()`
主营构成-主营收入比例。根据不同的数据库提供商返回对应的值
返回:string
### `scnBeforeNameField()`
## `SCN_BeforeNameField()`
名称变更-变动前名称字段。根据不同的数据库提供商返回对应的值
返回:string
### `siDominatorValue2()`
## `SI_DominatorValue2()`
发行-金额单位。根据不同的数据库提供商返回对应的值
返回:any
### `sssAHasNSharesField()`
## `SSS_AHasNSharesField()`
股本结构-已流通A股。根据不同的数据库提供商返回对应的值
返回:string
### `sssTotalSharesField()`
## `SSS_TotalSharesField()`
股本结构-总股本。根据不同的数据库提供商返回对应的值
返回:string
### `stlField(field_n)`
## `STL_Field(field_n)`
短期借款字段。根据参数FieldN的取值从数据表中获得相应的字段
@@ -202,42 +202,42 @@ Lido数据表对照表
返回:string
### `databaseInfoArrayId(info_id)`
## `databaseInfoArrayId(info_id)`
各个数据库提供商提供的基本面对照。由于存在多个数据源,历史原因,不同的数据源的ID设置不同,为了上层公用函数应用的统一性,天软设置了一个标准ID,通过标准ID,可以获得不同数据商对应的实际ID。
| 参数 | 类型 | 说明 |
| --- | --- | --- |
| 参数 | 类型 | 说明 |
| --------- | ------- | ------------------ |
| `info_id` | Integer | 基本面类型,标准ID |
返回:Integer
#### 示例
### 示例
```tsl
return databaseInfoArrayId(60);
//结果:314
```
### `dbReportField()`
## `dbReportField()`
数据库中报告期字段
返回:Array
### `dataBaseRatioValue(stock_id, id, report_date)`
## `dataBaseRatioValue(stock_id, id, report_date)`
财务比率分析数据
| 参数 | 类型 | 说明 |
| --- | --- | --- |
| `stock_id` | String | 证券类型,股票代码 |
| `id` | Integer | 整数类型 |
| 参数 | 类型 | 说明 |
| ------------- | ------- | ------------------ |
| `stock_id` | String | 证券类型,股票代码 |
| `id` | Integer | 整数类型 |
| `report_date` | Integer | 报告期类型,报告期 |
返回:Real
#### 示例
### 示例
```tsl
//返回"SZ000001"在2011年的归属于母公司所有者净利润
@@ -247,175 +247,175 @@ return dataBaseRatioValue(stockid,9,r_date);
//结果:10278631000
```
### `dataBaseRatioId(id)`
## `dataBaseRatioId(id)`
财务比率分析对照,实现不同数据商数据对照。
| 参数 | 类型 | 说明 |
| --- | --- | --- |
| 参数 | 类型 | 说明 |
| ---- | ------- | -------- |
| `id` | Integer | 整数类型 |
返回:Integer
### `dbghjj()`
## `dbghjj()`
国海基金
返回:String
### `dbjy()`
## `dbjy()`
聚源数据库
返回:String
### `dbnfjj()`
## `dbnfjj()`
南方基金
返回:String
### `dbLido()`
## `dbLido()`
利多数据库
返回:String
### `dbGenius()`
## `dbGenius()`
巨灵数据库
返回:String
### `filterVersion()`
## `filterVersion()`
查询大批量数据版本
返回:String
### `fv10()`
## `fv10()`
Ver1.0
返回:String
### `dbTinysoft()`
## `dbTinysoft()`
Tinysoft数据库
返回:String
### `fv20()`
## `fv20()`
Ver2.0
返回:String
### `dbWind()`
## `dbWind()`
Wind数据库
返回:String
### `dataBaseProvider()`
## `dataBaseProvider()`
现在模型对应的数据库提供商
返回:String
### `dbfzzq()`
## `dbfzzq()`
方正证券
返回:String
### `dbGyzq()`
## `dbGyzq()`
国元证券
返回:String
### `dbtdhy()`
## `dbtdhy()`
泰达荷银
返回:String
### `dbtpzc()`
## `dbtpzc()`
太平资产
返回:String
### `dbtpyzc()`
## `dbtpyzc()`
太平洋资产
返回:String
### `funcUser()`
## `funcUser()`
获得国元证券数据提供商
返回:String
### `dbcaihui()`
## `dbcaihui()`
财汇数据
返回:String
### `dbjy2()`
## `dbjy2()`
聚源数据库_华西
聚源数据库\_华西
返回:String
### `dbSw108()`
## `dbSw108()`
申万数据库
返回:String
### `dbHt()`
## `dbHt()`
海通数据库
返回:String
### `annotationsDominatorValue()`
## `annotationsDominatorValue()`
报表附注-单位。根据不同的数据库提供商返回对应的值
返回:Integer
### `declareDateField()`
## `declareDateField()`
公布日字段。根据数据库提供商返回对应的值
返回:String
### `coinValue(unit_type)`
## `coinValue(unit_type)`
金额显示单位。根据UnitType的取值返回相应的值
| 参数 | 类型 | 说明 |
| --- | --- | --- |
| 参数 | 类型 | 说明 |
| ----------- | ------- | -------- |
| `unit_type` | Integer | 整数类型 |
返回:Integer
### `coinStr(unit_type)`
## `coinStr(unit_type)`
金额单位。根据UnitType的取值返回相应的值
| 参数 | 类型 | 说明 |
| --- | --- | --- |
| 参数 | 类型 | 说明 |
| ----------- | ------- | ------------------ |
| `unit_type` | Integer | 整数类型,显示单位 |
返回:String
### `reportDateField()`
## `reportDateField()`
报告期字段。根据数据库提供商返回相应的值