1.0 KiB
1.0 KiB
金融 / 股票 / 股份回购 / 区间 / 中间函数
getRepurchaseVol(stock_id, beg_t, end_t, rtype, stype, ctype, ex_rate)
声明:function
获取区间内累计回购数量、金额、占比
| 参数 | 类型 | 说明 |
|---|---|---|
stock_id |
string | 证券,证券代码 |
beg_t |
datetime | 日期,开始日期 |
end_t |
datetime | 日期,截止日期 |
rtype |
int | 用户自定义,回购类型 |
stype |
int | 用户自定义,股票种类 |
ctype |
int | 用户自定义,计算类型 |
ex_rate |
int | 用户自定义,汇率类型 |
返回:float
示例
范例01:"SZ000002"在20150901到20220515的累计回购数量
// "SZ000002"在20150901到20220515的累计回购数量
return GetRepurchaseVol("SZ000002", 20150901T, 20220515T, 0, 0, 0, 0);
// 输出:13678169