GetRepurchaseVol
简述
获得区间内累计回购数量、金额、占比
GetRepurchaseVol(StockID:String;BegT:TDateTime;EndT:TDateTime;Rtype:Integer;Stype:Integer;Ctype:Integer;ExRate:Integer):Real
| 名称 | 类型 | 说明 |
|---|
| StockID | String | 证券,证券代码 |
| BegT | TDateTime | 日期,开始日期 |
| EndT | TDateTime | 日期,截止日期 |
| Rtype | Integer | 用户自定义,回购类型
|
显示名 |
取值 | |
全部 |
0 | |
股权激励回购 |
1 | |
竞价回购 |
2 | |
要约回购 |
3 | |
业绩承诺补偿股份回购 |
4 |
|
| Stype | Integer | 用户自定义,股票种类
|
显示名 |
取值 | |
全部 |
0 | |
A股 |
1 | |
B股 |
2 | |
H股 |
3 |
|
| Ctype | Integer | 用户自定义,计算类型
|
显示名 |
取值 | |
数量 |
0 | |
金额 |
1 | |
占总股本 |
2 | |
占B股 |
3 | |
占H股 |
4 |
|
| ExRate | Integer | 用户自定义,汇率类型
|
| 返回 | Real | 返回区间内累计回购数量、金额、占比 |
//"SZ000002"在20150901到20220515的累计回购数量
return GetRepurchaseVol("SZ000002",20150901T,20220515T,0,0,0,0);
//结果:13678169