📝 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:
+62
-62
@@ -1,6 +1,6 @@
|
||||
# 股票 / 机构持股
|
||||
|
||||
### `bkHoldDataByOrgan(r_date)`
|
||||
## `BK_HoldDataByOrgan(r_date)`
|
||||
|
||||
机构持股详情
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
返回:float
|
||||
|
||||
### `bkHoldDataByOrganType(r_date, organ_type)`
|
||||
## `BK_HoldDataByOrganType(r_date, organ_type)`
|
||||
|
||||
指定类型机构持股详情
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
返回:float
|
||||
|
||||
### `bkHoldIncreaseNumberByOrgan(r_date1, r_date2, organ_type)`
|
||||
## `BK_HoldIncreaseNumberByOrgan(r_date1, r_date2, organ_type)`
|
||||
|
||||
机构持股增持家数
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
|
||||
返回:float
|
||||
|
||||
### `bkHoldMValueByOrgan(r_date, organ_type)`
|
||||
## `BK_HoldMValueByOrgan(r_date, organ_type)`
|
||||
|
||||
机构持有市值(万)
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
|
||||
返回:float
|
||||
|
||||
### `bkHoldMValueChangeByOrgan(r_date1, r_date2, organ_type)`
|
||||
## `BK_HoldMValueChangeByOrgan(r_date1, r_date2, organ_type)`
|
||||
|
||||
机构持有市值变动(万)
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
|
||||
返回:float
|
||||
|
||||
### `bkHoldNumberByOrgan(r_date, organ_type)`
|
||||
## `BK_HoldNumberByOrgan(r_date, organ_type)`
|
||||
|
||||
机构持股数量
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
返回:float
|
||||
|
||||
### `bkHoldPercentage2ByOrgan(r_date, organ_type)`
|
||||
## `BK_HoldPercentage2ByOrgan(r_date, organ_type)`
|
||||
|
||||
机构持有市值占板块总市值(%)
|
||||
|
||||
@@ -78,7 +78,7 @@
|
||||
|
||||
返回:float
|
||||
|
||||
### `bkHoldPercentageByOrgan(r_date, organ_type)`
|
||||
## `BK_HoldPercentageByOrgan(r_date, organ_type)`
|
||||
|
||||
机构持有市值占板块流通市值(%)
|
||||
|
||||
@@ -89,7 +89,7 @@
|
||||
|
||||
返回:float
|
||||
|
||||
### `bkHoldReduceNumberByOrgan(r_date1, r_date2, organ_type)`
|
||||
## `BK_HoldReduceNumberByOrgan(r_date1, r_date2, organ_type)`
|
||||
|
||||
机构持股减持家数
|
||||
|
||||
@@ -101,7 +101,7 @@
|
||||
|
||||
返回:float
|
||||
|
||||
### `holdAmountByOrgan(r_date, organ_type, top_n)`
|
||||
## `holdAmountByOrgan(r_date, organ_type, top_n)`
|
||||
|
||||
机构持股数(万),与当前股票pn_stock()相关。
|
||||
|
||||
@@ -113,14 +113,14 @@
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
setsysparam(pn_stock(),"SZ300296");
|
||||
Return HoldAmountByOrgan(20180331,0,0);
|
||||
```
|
||||
|
||||
### `holdAmountByOrganNth(r_date, organ_type, f_top_n, top_n)`
|
||||
## `holdAmountByOrganNth(r_date, organ_type, f_top_n, top_n)`
|
||||
|
||||
第N机构持股数(万)
|
||||
|
||||
@@ -133,14 +133,14 @@ Return HoldAmountByOrgan(20180331,0,0);
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
SetSysParam(pn_stock(),"SZ000002");
|
||||
return HoldAmountByOrganNth(20250930,-1,0,10); //结果:6251.579
|
||||
```
|
||||
|
||||
### `holdAmountByOrganTopN(r_date, organ_type, f_top_n, top_n)`
|
||||
## `holdAmountByOrganTopN(r_date, organ_type, f_top_n, top_n)`
|
||||
|
||||
前N机构持股数(万)
|
||||
|
||||
@@ -153,14 +153,14 @@ return HoldAmountByOrganNth(20250930,-1,0,10); //结果:6251.579
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
SetSysParam(pn_stock(),"SZ000002");
|
||||
return HoldAmountByOrganTopN(20250930,-1,0,10); //结果:643365.6602
|
||||
```
|
||||
|
||||
### `holdamountchangebyorgan(rdate, rdate2, organtype, topn)`
|
||||
## `holdamountchangebyorgan(rdate, rdate2, organtype, topn)`
|
||||
|
||||
机构持股变动(万)
|
||||
|
||||
@@ -173,14 +173,14 @@ return HoldAmountByOrganTopN(20250930,-1,0,10); //结果:643365.6602
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
setsysparam(pn_stock(),"SZ300296");
|
||||
Return HoldAmountChangeByOrgan(20180331,20170331,0,0);
|
||||
```
|
||||
|
||||
### `holdAmountChangeByOrganTopN(r_date1, rdate2, organ_type, f_top_n, top_n)`
|
||||
## `holdAmountChangeByOrganTopN(r_date1, rdate2, organ_type, f_top_n, top_n)`
|
||||
|
||||
前N机构持股变动(万)
|
||||
|
||||
@@ -194,14 +194,14 @@ Return HoldAmountChangeByOrgan(20180331,20170331,0,0);
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
SetSysParam(pn_stock(),"SZ000002");
|
||||
return HoldAmountChangeByOrganTopN(20250930,20240930,-1,0,10); //结果:-2053.17
|
||||
```
|
||||
|
||||
### `holdbyfund(bkname, rdate, topn)`
|
||||
## `holdbyfund(bkname, rdate, topn)`
|
||||
|
||||
返回指定板块的持股明细数据
|
||||
|
||||
@@ -213,56 +213,56 @@ return HoldAmountChangeByOrganTopN(20250930,20240930,-1,0,10); //结果:-2053.
|
||||
|
||||
返回:array
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
setsysparam(pn_date(),20181010T);
|
||||
return HoldByFund("深证基金;上证基金;开放式基金",20180331,0);
|
||||
```
|
||||
|
||||
### `holdByOrgan(r_date, _type, top_n)`
|
||||
## `holdByOrgan(r_date, _type, top_n)`
|
||||
|
||||
机构持股情况,与当前股票pn_stock()相关。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| -------- | ---- | ------------------------ |
|
||||
| `r_date` | int | 报告期类型,报告期; |
|
||||
| `_type` | int | 用户自定义,机构类别; |
|
||||
| `_type` | int | 用户自定义,机构类别; |
|
||||
| `top_n` | int | 用户自定义,基金样本类型 |
|
||||
|
||||
返回:array
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
setsysparam(pn_stock(),"SZ300296");
|
||||
return HoldByOrgan(20180331,0,0);
|
||||
```
|
||||
|
||||
### `holdbyorganFromfundsc(rdate, _type, topn)`
|
||||
## `HoldByOrgan_FromFundSC(rdate, _type, topn)`
|
||||
|
||||
机构持股情况-数据来自基金持股明细 丛基金持股明细(或重仓股)和公司十大流通股东中查找基金持股
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ------- | -------- | ---------------------- |
|
||||
| `rdate` | datetime | 报告期 |
|
||||
| `_type` | any | 用户自定义,机构类别; |
|
||||
| `_type` | any | 用户自定义,机构类别; |
|
||||
| `topn` | any | 基金样本类型 |
|
||||
|
||||
返回:array
|
||||
|
||||
### `holdByOrganFromMsh(r_date, _type)`
|
||||
## `HoldByOrgan_FromMSH(r_date, _type)`
|
||||
|
||||
机构持股情况-数据来自十大流通股东,与当前股票pn_stock()相关。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| -------- | -------- | ---------------------- |
|
||||
| `r_date` | datetime | 报告期类型,报告期; |
|
||||
| `_type` | any | 用户自定义,机构类别; |
|
||||
| `_type` | any | 用户自定义,机构类别; |
|
||||
|
||||
返回:array
|
||||
|
||||
### `holdDataByOrgan(r_date, organ_type, f_top_n, from_no, to_no)`
|
||||
## `holdDataByOrgan(r_date, organ_type, f_top_n, from_no, to_no)`
|
||||
|
||||
指定证券列表指定机构类型前N机构持股详情
|
||||
|
||||
@@ -276,14 +276,14 @@ return HoldByOrgan(20180331,0,0);
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
setsysparam(pn_stock(),"SZ000002");
|
||||
return HoldDataByOrgan(20250930,-1,0,1,10);
|
||||
```
|
||||
|
||||
### `holdMValueByOrgan(r_date, organ_type, top_n)`
|
||||
## `holdMValueByOrgan(r_date, organ_type, top_n)`
|
||||
|
||||
机构持股市值(万),与当前股票pn_stock()相关。
|
||||
|
||||
@@ -295,14 +295,14 @@ return HoldDataByOrgan(20250930,-1,0,1,10);
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
setsysparam(pn_stock(),"SZ300296");
|
||||
Return HoldMValueByOrgan(20180331,0,0);
|
||||
```
|
||||
|
||||
### `holdMValueByOrganNth(r_date, organ_type, f_top_n, top_n)`
|
||||
## `holdMValueByOrganNth(r_date, organ_type, f_top_n, top_n)`
|
||||
|
||||
第N机构持市值(万)
|
||||
|
||||
@@ -315,14 +315,14 @@ Return HoldMValueByOrgan(20180331,0,0);
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
SetSysParam(pn_stock(),"SZ000002");
|
||||
return HoldMValueByOrganNth(20250930,-1,0,10); //结果:43073.37931
|
||||
```
|
||||
|
||||
### `holdMValueByOrganTopN(r_date, organ_type, f_top_n, top_n)`
|
||||
## `holdMValueByOrganTopN(r_date, organ_type, f_top_n, top_n)`
|
||||
|
||||
前N机构持市值(万)
|
||||
|
||||
@@ -335,14 +335,14 @@ return HoldMValueByOrganNth(20250930,-1,0,10); //结果:43073.37931
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
SetSysParam(pn_stock(),"SZ000002");
|
||||
return HoldMValueByOrganTopN(20250930,-1,0,10); //结果:4432789.4
|
||||
```
|
||||
|
||||
### `holdmvtotvbyorgan(rdate, organtype, topn)`
|
||||
## `holdmvtotvbyorgan(rdate, organtype, topn)`
|
||||
|
||||
机构持股市值占股票投资总市值比(%)
|
||||
|
||||
@@ -354,7 +354,7 @@ return HoldMValueByOrganTopN(20250930,-1,0,10); //结果:4432789.4
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
setsysparam(pn_stock(),"SZ300296");
|
||||
@@ -362,7 +362,7 @@ setsysparam(pn_date(),20181010T);
|
||||
return HoldMVToTVByOrgan(20180331,6,0);
|
||||
```
|
||||
|
||||
### `holdNamesByOrgan(r_date, organ_type, top_n)`
|
||||
## `holdNamesByOrgan(r_date, organ_type, top_n)`
|
||||
|
||||
机构持股详情,与当前股票pn_stock()相关。
|
||||
|
||||
@@ -374,14 +374,14 @@ return HoldMVToTVByOrgan(20180331,6,0);
|
||||
|
||||
返回:array
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
setsysparam(pn_stock(),"SZ300296");
|
||||
Return HoldNamesByOrgan(20180331,0,0);
|
||||
```
|
||||
|
||||
### `holdNamesByOrganTopN(r_date, organ_type, f_top_n, top_n)`
|
||||
## `holdNamesByOrganTopN(r_date, organ_type, f_top_n, top_n)`
|
||||
|
||||
前N机构持股详情
|
||||
|
||||
@@ -394,14 +394,14 @@ Return HoldNamesByOrgan(20180331,0,0);
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
SetSysParam(pn_stock(),"SZ000002");
|
||||
return HoldNamesByOrganTopN(20250930,-1,0,10);
|
||||
```
|
||||
|
||||
### `holdNumberByOrgan(r_date, organ_type, top_n)`
|
||||
## `holdNumberByOrgan(r_date, organ_type, top_n)`
|
||||
|
||||
持有机构数,与当前股票pn_stock()相关。
|
||||
|
||||
@@ -413,14 +413,14 @@ return HoldNamesByOrganTopN(20250930,-1,0,10);
|
||||
|
||||
返回:int
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
setsysparam(pn_stock(),"SZ300296");
|
||||
Return HoldNumberByOrgan(20180331,0,0);
|
||||
```
|
||||
|
||||
### `holdPercentage2ByOrgan(r_date, organ_type, top_n)`
|
||||
## `holdPercentage2ByOrgan(r_date, organ_type, top_n)`
|
||||
|
||||
机构持股占总股本比(%),与当前股票pn_stock()相关。
|
||||
|
||||
@@ -432,14 +432,14 @@ Return HoldNumberByOrgan(20180331,0,0);
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
setsysparam(pn_stock(),"SZ300296");
|
||||
Return HoldPercentage2ByOrgan(20180331,0,0);
|
||||
```
|
||||
|
||||
### `holdPercentage2ByOrganNth(r_date, organ_type, f_top_n, top_n)`
|
||||
## `holdPercentage2ByOrganNth(r_date, organ_type, f_top_n, top_n)`
|
||||
|
||||
第N机构持股占总股本比
|
||||
|
||||
@@ -452,14 +452,14 @@ Return HoldPercentage2ByOrgan(20180331,0,0);
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
SetSysParam(pn_stock(),"SZ000002");
|
||||
return HoldPercentage2ByOrganNth(20250930,-1,0,10); //结果:0.52
|
||||
```
|
||||
|
||||
### `holdPercentage2ByOrganTopN(r_date, organ_type, f_top_n, top_n)`
|
||||
## `holdPercentage2ByOrganTopN(r_date, organ_type, f_top_n, top_n)`
|
||||
|
||||
前N机构持股占总股本比
|
||||
|
||||
@@ -472,14 +472,14 @@ return HoldPercentage2ByOrganNth(20250930,-1,0,10); //结果:0.52
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
SetSysParam(pn_stock(),"SZ000002");
|
||||
return HoldPercentage2ByOrganTopN(20250930,-1,0,10); //结果:53.93
|
||||
```
|
||||
|
||||
### `holdPercentageByOrgan(r_date, organ_type, top_n)`
|
||||
## `holdPercentageByOrgan(r_date, organ_type, top_n)`
|
||||
|
||||
机构持股占流通股比(%),与当前股票pn_stock()相关。
|
||||
|
||||
@@ -491,14 +491,14 @@ return HoldPercentage2ByOrganTopN(20250930,-1,0,10); //结果:53.93
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
setsysparam(pn_stock(),"SZ300296");
|
||||
Return HoldPercentageByOrgan(20180331,0,0);
|
||||
```
|
||||
|
||||
### `holdPercentageByOrganNth(r_date, organ_type, f_top_n, top_n)`
|
||||
## `holdPercentageByOrganNth(r_date, organ_type, f_top_n, top_n)`
|
||||
|
||||
第N机构持股占流通股本比
|
||||
|
||||
@@ -511,14 +511,14 @@ Return HoldPercentageByOrgan(20180331,0,0);
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
SetSysParam(pn_stock(),"SZ000002");
|
||||
return HoldPercentageByOrganNth(20250930,-1,0,10); //结果:0.64
|
||||
```
|
||||
|
||||
### `holdPercentageByOrganTopN(r_date, organ_type, f_top_n, top_n)`
|
||||
## `holdPercentageByOrganTopN(r_date, organ_type, f_top_n, top_n)`
|
||||
|
||||
前N机构持股占流通股本比
|
||||
|
||||
@@ -531,30 +531,30 @@ return HoldPercentageByOrganNth(20250930,-1,0,10); //结果:0.64
|
||||
|
||||
返回:float
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
SetSysParam(pn_stock(),"SZ000002");
|
||||
return HoldPercentageByOrganTopN(20250930,-1,0,10); //结果:66.21
|
||||
```
|
||||
|
||||
### `mshOrganNames()`
|
||||
## `MSH_OrganNames()`
|
||||
|
||||
返回所有机构类别。返回的机构类别在函数中写死的。 对于天软数据的用户,返回 '封闭式投资基金', '开放式投资基金', '金融机构-证券、信托公司', '金融机构-保险公司', '金融机构-期货公司', '金融机构-银行', '公益基金', '投资、咨询公司', '风险投资公司', '金融机构-金融租赁公司', '院校-高校', '院校-研究院', '院校-院校企业', '职工工会', '财务公司', '上市公司', '资产管理公司', '国资局', '基金管理公司', '社保基金、社保机构', '企业年金', '券商集合资产管理计划', '信托公司单一证券信托', '信托公司集合信托计划', '金融机构-信用社', '上市公司下属公司', '中外合资企业', '外资独资企业' 对于聚源数据的用户,返回: '封闭式投资基金', '开放式投资基金', '金融机构—证券、信托公司', '金融机构—保险公司', '金融机构—期货公司', '金融机构—银行', '公益基金', '投资、咨询公司', '风险投资公司', '金融机构—金融租赁公司', '院校—高校', '院校—研究院', '院校—院校企业', '职工工会', '财务公司', '上市公司', '资产管理公司', '国资局', '基金管理公司', '社保基金、社保机构', '企业年金', '券商集合资产管理计划', '信托公司单一证券信托', '信托公司集合信托计划', '金融机构—信用社', '上市公司下属公司', '中外合资企业', '外资独资企业'
|
||||
|
||||
返回:array
|
||||
|
||||
### `organTypeToName(_type)`
|
||||
## `organTypeToName(_type)`
|
||||
|
||||
通过机构类别的选择,返回机构对应类型的名称。
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ------ | ---- | ---------------------- |
|
||||
| 参数 | 类型 | 说明 |
|
||||
| ------- | ---- | ---------------------- |
|
||||
| `_type` | int | 用户自定义,机构类别; |
|
||||
|
||||
返回:string
|
||||
|
||||
### `readFundsHoldCache(r_date, top_n)`
|
||||
## `readFundsHoldCache(r_date, top_n)`
|
||||
|
||||
获取对应报告期板块所有基金持股明细的前TopN名,与当前时间pn_date()相关。
|
||||
|
||||
@@ -565,7 +565,7 @@ return HoldPercentageByOrganTopN(20250930,-1,0,10); //结果:66.21
|
||||
|
||||
返回:array
|
||||
|
||||
#### 示例
|
||||
### 示例
|
||||
|
||||
```tsl
|
||||
setsysparam(pn_date(),20181012T);
|
||||
|
||||
Reference in New Issue
Block a user