Move generated builtin and dotnet function docs into the upgraded taxonomy, remove legacy route pages, and regenerate function_index.tsv from markdown headings.
574 lines
18 KiB
Markdown
574 lines
18 KiB
Markdown
# 股票 / 机构持股
|
||
|
||
### `bkHoldDataByOrgan(r_date)`
|
||
|
||
机构持股详情
|
||
|
||
| 参数 | 类型 | 说明 |
|
||
| -------- | -------- | ----------------- |
|
||
| `r_date` | datetime | 报告期,指定报告期 |
|
||
|
||
返回:float
|
||
|
||
### `bkHoldDataByOrganType(r_date, organ_type)`
|
||
|
||
指定类型机构持股详情
|
||
|
||
| 参数 | 类型 | 说明 |
|
||
| ------------ | -------- | ------------------- |
|
||
| `r_date` | datetime | 报告期,指定报告期 |
|
||
| `organ_type` | any | 用户自定义,机构类别 |
|
||
|
||
返回:float
|
||
|
||
### `bkHoldIncreaseNumberByOrgan(r_date1, r_date2, organ_type)`
|
||
|
||
机构持股增持家数
|
||
|
||
| 参数 | 类型 | 说明 |
|
||
| ------------ | ---- | ------------------- |
|
||
| `r_date1` | any | 报告期,指定报告期 |
|
||
| `r_date2` | any | 报告期,对比报告期 |
|
||
| `organ_type` | any | 用户自定义,机构类别 |
|
||
|
||
返回:float
|
||
|
||
### `bkHoldMValueByOrgan(r_date, organ_type)`
|
||
|
||
机构持有市值(万)
|
||
|
||
| 参数 | 类型 | 说明 |
|
||
| ------------ | -------- | ------------------- |
|
||
| `r_date` | datetime | 报告期,指定报告期 |
|
||
| `organ_type` | any | 用户自定义,机构类别 |
|
||
|
||
返回:float
|
||
|
||
### `bkHoldMValueChangeByOrgan(r_date1, r_date2, organ_type)`
|
||
|
||
机构持有市值变动(万)
|
||
|
||
| 参数 | 类型 | 说明 |
|
||
| ------------ | ---- | ------------------- |
|
||
| `r_date1` | any | 报告期,指定报告期 |
|
||
| `r_date2` | any | 报告期,对比报告期 |
|
||
| `organ_type` | any | 用户自定义,机构类别 |
|
||
|
||
返回:float
|
||
|
||
### `bkHoldNumberByOrgan(r_date, organ_type)`
|
||
|
||
机构持股数量
|
||
|
||
| 参数 | 类型 | 说明 |
|
||
| ------------ | -------- | ------------------- |
|
||
| `r_date` | datetime | 报告期,指定报告期 |
|
||
| `organ_type` | any | 用户自定义,机构类别 |
|
||
|
||
返回:float
|
||
|
||
### `bkHoldPercentage2ByOrgan(r_date, organ_type)`
|
||
|
||
机构持有市值占板块总市值(%)
|
||
|
||
| 参数 | 类型 | 说明 |
|
||
| ------------ | -------- | ------------------- |
|
||
| `r_date` | datetime | 报告期,指定报告期 |
|
||
| `organ_type` | any | 用户自定义,机构类别 |
|
||
|
||
返回:float
|
||
|
||
### `bkHoldPercentageByOrgan(r_date, organ_type)`
|
||
|
||
机构持有市值占板块流通市值(%)
|
||
|
||
| 参数 | 类型 | 说明 |
|
||
| ------------ | -------- | ------------------- |
|
||
| `r_date` | datetime | 报告期,指定报告期 |
|
||
| `organ_type` | any | 用户自定义,机构类别 |
|
||
|
||
返回:float
|
||
|
||
### `bkHoldReduceNumberByOrgan(r_date1, r_date2, organ_type)`
|
||
|
||
机构持股减持家数
|
||
|
||
| 参数 | 类型 | 说明 |
|
||
| ------------ | ---- | ------------------- |
|
||
| `r_date1` | any | 报告期,指定报告期 |
|
||
| `r_date2` | any | 报告期,对比报告期 |
|
||
| `organ_type` | any | 用户自定义,机构类别 |
|
||
|
||
返回:float
|
||
|
||
### `holdAmountByOrgan(r_date, organ_type, top_n)`
|
||
|
||
机构持股数(万),与当前股票pn_stock()相关。
|
||
|
||
| 参数 | 类型 | 说明 |
|
||
| ------------ | ---- | ------------------------ |
|
||
| `r_date` | int | 报告期类型,报告期; |
|
||
| `organ_type` | int | 用户自定义,机构类别; |
|
||
| `top_n` | int | 用户自定义,基金样本类型 |
|
||
|
||
返回:float
|
||
|
||
#### 示例
|
||
|
||
```tsl
|
||
setsysparam(pn_stock(),"SZ300296");
|
||
Return HoldAmountByOrgan(20180331,0,0);
|
||
```
|
||
|
||
### `holdAmountByOrganNth(r_date, organ_type, f_top_n, top_n)`
|
||
|
||
第N机构持股数(万)
|
||
|
||
| 参数 | 类型 | 说明 |
|
||
| ------------ | ---- | ----------------------- |
|
||
| `r_date` | int | 报告期,指定报告期 |
|
||
| `organ_type` | int | 用户自定义,机构类别 |
|
||
| `f_top_n` | int | 用户自定义,基金样本类型 |
|
||
| `top_n` | int | 整数,第N |
|
||
|
||
返回:float
|
||
|
||
#### 示例
|
||
|
||
```tsl
|
||
SetSysParam(pn_stock(),"SZ000002");
|
||
return HoldAmountByOrganNth(20250930,-1,0,10); //结果:6251.579
|
||
```
|
||
|
||
### `holdAmountByOrganTopN(r_date, organ_type, f_top_n, top_n)`
|
||
|
||
前N机构持股数(万)
|
||
|
||
| 参数 | 类型 | 说明 |
|
||
| ------------ | ---- | ----------------------- |
|
||
| `r_date` | int | 报告期,指定报告期 |
|
||
| `organ_type` | int | 用户自定义,机构类别 |
|
||
| `f_top_n` | int | 用户自定义,基金样本类型 |
|
||
| `top_n` | int | 整数,前N |
|
||
|
||
返回:float
|
||
|
||
#### 示例
|
||
|
||
```tsl
|
||
SetSysParam(pn_stock(),"SZ000002");
|
||
return HoldAmountByOrganTopN(20250930,-1,0,10); //结果:643365.6602
|
||
```
|
||
|
||
### `holdamountchangebyorgan(rdate, rdate2, organtype, topn)`
|
||
|
||
机构持股变动(万)
|
||
|
||
| 参数 | 类型 | 说明 |
|
||
| ----------- | ---- | ---------------------- |
|
||
| `rdate` | int | 报告期 |
|
||
| `rdate2` | int | 同比报告期 |
|
||
| `organtype` | int | 用户自定义,机构类别; |
|
||
| `topn` | int | 基金样本类型 |
|
||
|
||
返回:float
|
||
|
||
#### 示例
|
||
|
||
```tsl
|
||
setsysparam(pn_stock(),"SZ300296");
|
||
Return HoldAmountChangeByOrgan(20180331,20170331,0,0);
|
||
```
|
||
|
||
### `holdAmountChangeByOrganTopN(r_date1, rdate2, organ_type, f_top_n, top_n)`
|
||
|
||
前N机构持股变动(万)
|
||
|
||
| 参数 | 类型 | 说明 |
|
||
| ------------ | ---- | ----------------------- |
|
||
| `r_date1` | int | 报告期,指定报告期 |
|
||
| `rdate2` | int | 报告期,对比报告期 |
|
||
| `organ_type` | int | 用户自定义,机构类别 |
|
||
| `f_top_n` | int | 用户自定义,基金样本类型 |
|
||
| `top_n` | int | 整数,前N |
|
||
|
||
返回:float
|
||
|
||
#### 示例
|
||
|
||
```tsl
|
||
SetSysParam(pn_stock(),"SZ000002");
|
||
return HoldAmountChangeByOrganTopN(20250930,20240930,-1,0,10); //结果:-2053.17
|
||
```
|
||
|
||
### `holdbyfund(bkname, rdate, topn)`
|
||
|
||
返回指定板块的持股明细数据
|
||
|
||
| 参数 | 类型 | 说明 |
|
||
| -------- | ------ | -------------------------------------------- |
|
||
| `bkname` | string | 市场和板块类型 |
|
||
| `rdate` | int | 报告期 |
|
||
| `topn` | int | 基金样本类型 0:基金持股明细;10:基金重仓股 |
|
||
|
||
返回:array
|
||
|
||
#### 示例
|
||
|
||
```tsl
|
||
setsysparam(pn_date(),20181010T);
|
||
return HoldByFund("深证基金;上证基金;开放式基金",20180331,0);
|
||
```
|
||
|
||
### `holdByOrgan(r_date, _type, top_n)`
|
||
|
||
机构持股情况,与当前股票pn_stock()相关。
|
||
|
||
| 参数 | 类型 | 说明 |
|
||
| -------- | ---- | ------------------------ |
|
||
| `r_date` | int | 报告期类型,报告期; |
|
||
| `_type` | int | 用户自定义,机构类别; |
|
||
| `top_n` | int | 用户自定义,基金样本类型 |
|
||
|
||
返回:array
|
||
|
||
#### 示例
|
||
|
||
```tsl
|
||
setsysparam(pn_stock(),"SZ300296");
|
||
return HoldByOrgan(20180331,0,0);
|
||
```
|
||
|
||
### `holdbyorganFromfundsc(rdate, _type, topn)`
|
||
|
||
机构持股情况-数据来自基金持股明细 丛基金持股明细(或重仓股)和公司十大流通股东中查找基金持股
|
||
|
||
| 参数 | 类型 | 说明 |
|
||
| ------- | -------- | ---------------------- |
|
||
| `rdate` | datetime | 报告期 |
|
||
| `_type` | any | 用户自定义,机构类别; |
|
||
| `topn` | any | 基金样本类型 |
|
||
|
||
返回:array
|
||
|
||
### `holdByOrganFromMsh(r_date, _type)`
|
||
|
||
机构持股情况-数据来自十大流通股东,与当前股票pn_stock()相关。
|
||
|
||
| 参数 | 类型 | 说明 |
|
||
| -------- | -------- | ---------------------- |
|
||
| `r_date` | datetime | 报告期类型,报告期; |
|
||
| `_type` | any | 用户自定义,机构类别; |
|
||
|
||
返回:array
|
||
|
||
### `holdDataByOrgan(r_date, organ_type, f_top_n, from_no, to_no)`
|
||
|
||
指定证券列表指定机构类型前N机构持股详情
|
||
|
||
| 参数 | 类型 | 说明 |
|
||
| ------------ | ---- | ----------------------- |
|
||
| `r_date` | int | 报告期,指定报告期 |
|
||
| `organ_type` | int | 用户自定义,机构类别 |
|
||
| `f_top_n` | int | 用户自定义,基金样本类型 |
|
||
| `from_no` | int | 整数,开始索引号 |
|
||
| `to_no` | int | 整数,截止索引号 |
|
||
|
||
返回:float
|
||
|
||
#### 示例
|
||
|
||
```tsl
|
||
setsysparam(pn_stock(),"SZ000002");
|
||
return HoldDataByOrgan(20250930,-1,0,1,10);
|
||
```
|
||
|
||
### `holdMValueByOrgan(r_date, organ_type, top_n)`
|
||
|
||
机构持股市值(万),与当前股票pn_stock()相关。
|
||
|
||
| 参数 | 类型 | 说明 |
|
||
| ------------ | ---- | ------------------------ |
|
||
| `r_date` | int | 报告期类型,报告期; |
|
||
| `organ_type` | int | 用户自定义,机构类别; |
|
||
| `top_n` | int | 用户自定义,基金样本类型 |
|
||
|
||
返回:float
|
||
|
||
#### 示例
|
||
|
||
```tsl
|
||
setsysparam(pn_stock(),"SZ300296");
|
||
Return HoldMValueByOrgan(20180331,0,0);
|
||
```
|
||
|
||
### `holdMValueByOrganNth(r_date, organ_type, f_top_n, top_n)`
|
||
|
||
第N机构持市值(万)
|
||
|
||
| 参数 | 类型 | 说明 |
|
||
| ------------ | ---- | ----------------------- |
|
||
| `r_date` | int | 报告期,指定报告期 |
|
||
| `organ_type` | int | 用户自定义,机构类别 |
|
||
| `f_top_n` | int | 用户自定义,基金样本类型 |
|
||
| `top_n` | int | 整数,第N |
|
||
|
||
返回:float
|
||
|
||
#### 示例
|
||
|
||
```tsl
|
||
SetSysParam(pn_stock(),"SZ000002");
|
||
return HoldMValueByOrganNth(20250930,-1,0,10); //结果:43073.37931
|
||
```
|
||
|
||
### `holdMValueByOrganTopN(r_date, organ_type, f_top_n, top_n)`
|
||
|
||
前N机构持市值(万)
|
||
|
||
| 参数 | 类型 | 说明 |
|
||
| ------------ | ---- | ----------------------- |
|
||
| `r_date` | int | 报告期,指定报告期 |
|
||
| `organ_type` | int | 用户自定义,机构类别 |
|
||
| `f_top_n` | int | 用户自定义,基金样本类型 |
|
||
| `top_n` | int | 整数,前N |
|
||
|
||
返回:float
|
||
|
||
#### 示例
|
||
|
||
```tsl
|
||
SetSysParam(pn_stock(),"SZ000002");
|
||
return HoldMValueByOrganTopN(20250930,-1,0,10); //结果:4432789.4
|
||
```
|
||
|
||
### `holdmvtotvbyorgan(rdate, organtype, topn)`
|
||
|
||
机构持股市值占股票投资总市值比(%)
|
||
|
||
| 参数 | 类型 | 说明 |
|
||
| ----------- | --------- | ------------------------ |
|
||
| `rdate` | datetime | 报告期, |
|
||
| `organtype` | usrdefine | 机构类别基金=0,usrdefine |
|
||
| `topn` | int | 取前N名, |
|
||
|
||
返回:float
|
||
|
||
#### 示例
|
||
|
||
```tsl
|
||
setsysparam(pn_stock(),"SZ300296");
|
||
setsysparam(pn_date(),20181010T);
|
||
return HoldMVToTVByOrgan(20180331,6,0);
|
||
```
|
||
|
||
### `holdNamesByOrgan(r_date, organ_type, top_n)`
|
||
|
||
机构持股详情,与当前股票pn_stock()相关。
|
||
|
||
| 参数 | 类型 | 说明 |
|
||
| ------------ | ---- | ------------------------ |
|
||
| `r_date` | int | 报告期类型,报告期; |
|
||
| `organ_type` | int | 用户自定义,机构类别; |
|
||
| `top_n` | int | 用户自定义,基金样本类型 |
|
||
|
||
返回:array
|
||
|
||
#### 示例
|
||
|
||
```tsl
|
||
setsysparam(pn_stock(),"SZ300296");
|
||
Return HoldNamesByOrgan(20180331,0,0);
|
||
```
|
||
|
||
### `holdNamesByOrganTopN(r_date, organ_type, f_top_n, top_n)`
|
||
|
||
前N机构持股详情
|
||
|
||
| 参数 | 类型 | 说明 |
|
||
| ------------ | ---- | ----------------------- |
|
||
| `r_date` | int | 报告期,指定报告期 |
|
||
| `organ_type` | int | 用户自定义,机构类别 |
|
||
| `f_top_n` | int | 用户自定义,基金样本类型 |
|
||
| `top_n` | int | 整数,前N |
|
||
|
||
返回:float
|
||
|
||
#### 示例
|
||
|
||
```tsl
|
||
SetSysParam(pn_stock(),"SZ000002");
|
||
return HoldNamesByOrganTopN(20250930,-1,0,10);
|
||
```
|
||
|
||
### `holdNumberByOrgan(r_date, organ_type, top_n)`
|
||
|
||
持有机构数,与当前股票pn_stock()相关。
|
||
|
||
| 参数 | 类型 | 说明 |
|
||
| ------------ | ---- | ------------------------ |
|
||
| `r_date` | int | 报告期类型,报告期; |
|
||
| `organ_type` | int | 用户自定义,机构类别; |
|
||
| `top_n` | int | 用户自定义,基金样本类型 |
|
||
|
||
返回:int
|
||
|
||
#### 示例
|
||
|
||
```tsl
|
||
setsysparam(pn_stock(),"SZ300296");
|
||
Return HoldNumberByOrgan(20180331,0,0);
|
||
```
|
||
|
||
### `holdPercentage2ByOrgan(r_date, organ_type, top_n)`
|
||
|
||
机构持股占总股本比(%),与当前股票pn_stock()相关。
|
||
|
||
| 参数 | 类型 | 说明 |
|
||
| ------------ | -------- | ------------------------ |
|
||
| `r_date` | datetime | 报告期类型,报告期; |
|
||
| `organ_type` | int | 用户自定义,机构类别; |
|
||
| `top_n` | int | 用户自定义,基金样本类型 |
|
||
|
||
返回:float
|
||
|
||
#### 示例
|
||
|
||
```tsl
|
||
setsysparam(pn_stock(),"SZ300296");
|
||
Return HoldPercentage2ByOrgan(20180331,0,0);
|
||
```
|
||
|
||
### `holdPercentage2ByOrganNth(r_date, organ_type, f_top_n, top_n)`
|
||
|
||
第N机构持股占总股本比
|
||
|
||
| 参数 | 类型 | 说明 |
|
||
| ------------ | ---- | ----------------------- |
|
||
| `r_date` | int | 报告期,指定报告期 |
|
||
| `organ_type` | int | 用户自定义,机构类别 |
|
||
| `f_top_n` | int | 用户自定义,基金样本类型 |
|
||
| `top_n` | int | 整数,第N |
|
||
|
||
返回:float
|
||
|
||
#### 示例
|
||
|
||
```tsl
|
||
SetSysParam(pn_stock(),"SZ000002");
|
||
return HoldPercentage2ByOrganNth(20250930,-1,0,10); //结果:0.52
|
||
```
|
||
|
||
### `holdPercentage2ByOrganTopN(r_date, organ_type, f_top_n, top_n)`
|
||
|
||
前N机构持股占总股本比
|
||
|
||
| 参数 | 类型 | 说明 |
|
||
| ------------ | ---- | ----------------------- |
|
||
| `r_date` | int | 报告期,指定报告期 |
|
||
| `organ_type` | int | 用户自定义,机构类别 |
|
||
| `f_top_n` | int | 用户自定义,基金样本类型 |
|
||
| `top_n` | int | 整数,前N |
|
||
|
||
返回:float
|
||
|
||
#### 示例
|
||
|
||
```tsl
|
||
SetSysParam(pn_stock(),"SZ000002");
|
||
return HoldPercentage2ByOrganTopN(20250930,-1,0,10); //结果:53.93
|
||
```
|
||
|
||
### `holdPercentageByOrgan(r_date, organ_type, top_n)`
|
||
|
||
机构持股占流通股比(%),与当前股票pn_stock()相关。
|
||
|
||
| 参数 | 类型 | 说明 |
|
||
| ------------ | ---- | ------------------------ |
|
||
| `r_date` | int | 报告期类型,报告期; |
|
||
| `organ_type` | int | 用户自定义,机构类别; |
|
||
| `top_n` | int | 用户自定义,基金样本类型 |
|
||
|
||
返回:float
|
||
|
||
#### 示例
|
||
|
||
```tsl
|
||
setsysparam(pn_stock(),"SZ300296");
|
||
Return HoldPercentageByOrgan(20180331,0,0);
|
||
```
|
||
|
||
### `holdPercentageByOrganNth(r_date, organ_type, f_top_n, top_n)`
|
||
|
||
第N机构持股占流通股本比
|
||
|
||
| 参数 | 类型 | 说明 |
|
||
| ------------ | ---- | ----------------------- |
|
||
| `r_date` | int | 报告期,指定报告期 |
|
||
| `organ_type` | int | 用户自定义,机构类别 |
|
||
| `f_top_n` | int | 用户自定义,基金样本类型 |
|
||
| `top_n` | int | 整数,第N |
|
||
|
||
返回:float
|
||
|
||
#### 示例
|
||
|
||
```tsl
|
||
SetSysParam(pn_stock(),"SZ000002");
|
||
return HoldPercentageByOrganNth(20250930,-1,0,10); //结果:0.64
|
||
```
|
||
|
||
### `holdPercentageByOrganTopN(r_date, organ_type, f_top_n, top_n)`
|
||
|
||
前N机构持股占流通股本比
|
||
|
||
| 参数 | 类型 | 说明 |
|
||
| ------------ | ---- | ----------------------- |
|
||
| `r_date` | int | 报告期,指定报告期 |
|
||
| `organ_type` | int | 用户自定义,机构类别 |
|
||
| `f_top_n` | int | 用户自定义,基金样本类型 |
|
||
| `top_n` | int | 整数,前N |
|
||
|
||
返回:float
|
||
|
||
#### 示例
|
||
|
||
```tsl
|
||
SetSysParam(pn_stock(),"SZ000002");
|
||
return HoldPercentageByOrganTopN(20250930,-1,0,10); //结果:66.21
|
||
```
|
||
|
||
### `mshOrganNames()`
|
||
|
||
返回所有机构类别。返回的机构类别在函数中写死的。 对于天软数据的用户,返回 '封闭式投资基金', '开放式投资基金', '金融机构-证券、信托公司', '金融机构-保险公司', '金融机构-期货公司', '金融机构-银行', '公益基金', '投资、咨询公司', '风险投资公司', '金融机构-金融租赁公司', '院校-高校', '院校-研究院', '院校-院校企业', '职工工会', '财务公司', '上市公司', '资产管理公司', '国资局', '基金管理公司', '社保基金、社保机构', '企业年金', '券商集合资产管理计划', '信托公司单一证券信托', '信托公司集合信托计划', '金融机构-信用社', '上市公司下属公司', '中外合资企业', '外资独资企业' 对于聚源数据的用户,返回: '封闭式投资基金', '开放式投资基金', '金融机构—证券、信托公司', '金融机构—保险公司', '金融机构—期货公司', '金融机构—银行', '公益基金', '投资、咨询公司', '风险投资公司', '金融机构—金融租赁公司', '院校—高校', '院校—研究院', '院校—院校企业', '职工工会', '财务公司', '上市公司', '资产管理公司', '国资局', '基金管理公司', '社保基金、社保机构', '企业年金', '券商集合资产管理计划', '信托公司单一证券信托', '信托公司集合信托计划', '金融机构—信用社', '上市公司下属公司', '中外合资企业', '外资独资企业'
|
||
|
||
返回:array
|
||
|
||
### `organTypeToName(_type)`
|
||
|
||
通过机构类别的选择,返回机构对应类型的名称。
|
||
|
||
| 参数 | 类型 | 说明 |
|
||
| ------ | ---- | ---------------------- |
|
||
| `_type` | int | 用户自定义,机构类别; |
|
||
|
||
返回:string
|
||
|
||
### `readFundsHoldCache(r_date, top_n)`
|
||
|
||
获取对应报告期板块所有基金持股明细的前TopN名,与当前时间pn_date()相关。
|
||
|
||
| 参数 | 类型 | 说明 |
|
||
| -------- | -------- | -------- |
|
||
| `r_date` | datetime | 报告期; |
|
||
| `top_n` | int | 整数; |
|
||
|
||
返回:array
|
||
|
||
#### 示例
|
||
|
||
```tsl
|
||
setsysparam(pn_date(),20181012T);
|
||
Return ReadFundsHoldCache(20050630,10);
|
||
```
|