7.5 KiB
7.5 KiB
金融 / 股票 / 机构持股
holdAmountByOrganNth(r_date, organ_type, f_top_n, top_n)
声明:function
返回第N机构持股数(万)
| 参数 | 类型 | 说明 |
|---|---|---|
r_date |
int | 报告期,指定报告期 |
organ_type |
int | 用户自定义,机构类别 |
f_top_n |
int | 用户自定义,基金样本类型 |
top_n |
int | 整数,第N |
返回:float
示例
范例01:调用函数
SetSysParam(pn_stock(), "SZ000002");
return HoldAmountByOrganNth(20250930, -1, 0, 10);
// 输出:6251.579
holdAmountByOrganTopN(r_date, organ_type, f_top_n, top_n)
声明:function
返回前N机构持股数(万)
| 参数 | 类型 | 说明 |
|---|---|---|
r_date |
int | 报告期,指定报告期 |
organ_type |
int | 用户自定义,机构类别 |
f_top_n |
int | 用户自定义,基金样本类型 |
top_n |
int | 整数,前N |
返回:float
示例
范例01:调用函数
SetSysParam(pn_stock(), "SZ000002");
return HoldAmountByOrganTopN(20250930, -1, 0, 10);
// 输出:643365.6602
holdAmountChangeByOrganTopN(r_date_1, rdate_2, organ_type, f_top_n, top_n)
声明:function
返回前N机构持股变动(万)
| 参数 | 类型 | 说明 |
|---|---|---|
r_date_1 |
int | 报告期,指定报告期 |
rdate_2 |
int | 报告期,对比报告期 |
organ_type |
int | 用户自定义,机构类别 |
f_top_n |
int | 用户自定义,基金样本类型 |
top_n |
int | 整数,前N |
返回:float
示例
范例01:调用函数
SetSysParam(pn_stock(), "SZ000002");
return HoldAmountChangeByOrganTopN(20250930, 20240930, -1, 0, 10);
// 输出:-2053.17
holdMValueByOrganNth(r_date, organ_type, f_top_n, top_n)
声明:function
返回第N机构持市值(万)
| 参数 | 类型 | 说明 |
|---|---|---|
r_date |
int | 报告期,指定报告期 |
organ_type |
int | 用户自定义,机构类别 |
f_top_n |
int | 用户自定义,基金样本类型 |
top_n |
int | 整数,第N |
返回:float
示例
范例01:调用函数
SetSysParam(pn_stock(), "SZ000002");
return HoldMValueByOrganNth(20250930, -1, 0, 10);
// 输出:43073.37931
holdMValueByOrganTopN(r_date, organ_type, f_top_n, top_n)
声明:function
返回前N机构持市值(万)
| 参数 | 类型 | 说明 |
|---|---|---|
r_date |
int | 报告期,指定报告期 |
organ_type |
int | 用户自定义,机构类别 |
f_top_n |
int | 用户自定义,基金样本类型 |
top_n |
int | 整数,前N |
返回:float
示例
范例01:调用函数
SetSysParam(pn_stock(), "SZ000002");
return HoldMValueByOrganTopN(20250930, -1, 0, 10);
// 输出:4432789.4
holdNamesByOrganTopN(r_date, organ_type, f_top_n, top_n)
声明:function
返回前N机构持股详情
| 参数 | 类型 | 说明 |
|---|---|---|
r_date |
int | 报告期,指定报告期 |
organ_type |
int | 用户自定义,机构类别 |
f_top_n |
int | 用户自定义,基金样本类型 |
top_n |
int | 整数,前N |
返回:float
示例
范例01:调用函数
SetSysParam(pn_stock(), "SZ000002");
return HoldNamesByOrganTopN(20250930, -1, 0, 10);
holdPercentage2ByOrgan(r_date, organ_type, top_n)
声明:function
返回机构持股占总股本比(%),与当前股票pn_stock()相关
| 参数 | 类型 | 说明 |
|---|---|---|
r_date |
datetime | 报告期类型,报告期; |
organ_type |
int | 用户自定义,机构类别; |
top_n |
int | 用户自定义,基金样本类型 |
返回:float
示例
范例01:调用函数
setsysparam(pn_stock(), "SZ300296");
Return HoldPercentage2ByOrgan(20180331, 0, 0);
holdPercentage2ByOrganNth(r_date, organ_type, f_top_n, top_n)
声明:function
返回第N机构持股占总股本比
| 参数 | 类型 | 说明 |
|---|---|---|
r_date |
int | 报告期,指定报告期 |
organ_type |
int | 用户自定义,机构类别 |
f_top_n |
int | 用户自定义,基金样本类型 |
top_n |
int | 整数,第N |
返回:float
示例
范例01:调用函数
SetSysParam(pn_stock(), "SZ000002");
return HoldPercentage2ByOrganNth(20250930, -1, 0, 10);
// 输出:0.52
holdPercentage2ByOrganTopN(r_date, organ_type, f_top_n, top_n)
声明:function
返回前N机构持股占总股本比
| 参数 | 类型 | 说明 |
|---|---|---|
r_date |
int | 报告期,指定报告期 |
organ_type |
int | 用户自定义,机构类别 |
f_top_n |
int | 用户自定义,基金样本类型 |
top_n |
int | 整数,前N |
返回:float
示例
范例01:调用函数
SetSysParam(pn_stock(), "SZ000002");
return HoldPercentage2ByOrganTopN(20250930, -1, 0, 10);
// 输出:53.93
holdPercentageByOrganNth(r_date, organ_type, f_top_n, top_n)
声明:function
返回第N机构持股占流通股本比
| 参数 | 类型 | 说明 |
|---|---|---|
r_date |
int | 报告期,指定报告期 |
organ_type |
int | 用户自定义,机构类别 |
f_top_n |
int | 用户自定义,基金样本类型 |
top_n |
int | 整数,第N |
返回:float
示例
范例01:调用函数
SetSysParam(pn_stock(), "SZ000002");
return HoldPercentageByOrganNth(20250930, -1, 0, 10);
// 输出:0.64
holdPercentageByOrganTopN(r_date, organ_type, f_top_n, top_n)
声明:function
返回前N机构持股占流通股本比
| 参数 | 类型 | 说明 |
|---|---|---|
r_date |
int | 报告期,指定报告期 |
organ_type |
int | 用户自定义,机构类别 |
f_top_n |
int | 用户自定义,基金样本类型 |
top_n |
int | 整数,前N |
返回:float
示例
范例01:调用函数
SetSysParam(pn_stock(), "SZ000002");
return HoldPercentageByOrganTopN(20250930, -1, 0, 10);
// 输出:66.21