Files
playbook/skills/tsl-api-reference/references/codegen/dotnet/equity/buyback.md
T
csh c0bf0358e0 📝 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.
2026-07-07 16:47:03 +08:00

387 lines
12 KiB
Markdown

# 股票 / 股份回购
## `Stock_RepurchaseAmount(end_t)`
获得指定日前最近累计回购金额,系统参数:证券代码
| 参数 | 类型 | 说明 |
| ------- | -------- | ------------- |
| `end_t` | datetime | 日期,截止日期 |
返回:float
## `Stock_RepurchaseAmountOfYear(end_t, rtype, stype, ex_rate)`
获得指定日前最近一年累计回购金额
| 参数 | 类型 | 说明 |
| --------- | -------- | ------------------- |
| `end_t` | datetime | 日期,截止日期 |
| `rtype` | any | 用户自定义,回购类型 |
| `stype` | any | 用户自定义,股票种类 |
| `ex_rate` | any | 用户自定义,汇率类型 |
返回:float
## `Stock_RepurchaseAmountQJ(beg_t, end_t, rtype, stype, ex_rate)`
获得区间内回购金额总和,区间已结束的方案累计回购金额+区间还未结束的方案回购金额
| 参数 | 类型 | 说明 |
| --------- | -------- | ------------------- |
| `beg_t` | datetime | 日期,开始日期 |
| `end_t` | datetime | 日期,截止日期 |
| `rtype` | any | 用户自定义,回购类型 |
| `stype` | any | 用户自定义,股票种类 |
| `ex_rate` | any | 用户自定义,汇率类型 |
返回:float
## `Stock_RepurchaseAveragePrice(end_t)`
获得指定日前最近累计回购均价,系统参数:证券代码
| 参数 | 类型 | 说明 |
| ------- | -------- | ------------- |
| `end_t` | datetime | 日期,截止日期 |
返回:float
## `Stock_RepurchaseAveragePriceQJ(beg_t, end_t, rtype, stype, ex_rate)`
获得区间内累计回购均价=区间累计回购金额/区间累计回购数量
| 参数 | 类型 | 说明 |
| --------- | -------- | ------------------- |
| `beg_t` | datetime | 日期,开始日期 |
| `end_t` | datetime | 日期,截止日期 |
| `rtype` | any | 用户自定义,回购类型 |
| `stype` | any | 用户自定义,股票种类 |
| `ex_rate` | any | 用户自定义,汇率类型 |
返回:float
## `Stock_RepurchaseBuyNumByYear(end_t, rtype, stype)`
获得指定日前最近一年累计回购次数
| 参数 | 类型 | 说明 |
| ------- | -------- | ------------------- |
| `end_t` | datetime | 日期,截止日期 |
| `rtype` | any | 用户自定义,回购类型 |
| `stype` | any | 用户自定义,股票种类 |
返回:any
## `Stock_RepurchaseBuyNumQJ(beg_t, end_t, rtype, stype)`
获得区间内回购数量不为0的回购次数
| 参数 | 类型 | 说明 |
| ------- | -------- | ------------------- |
| `beg_t` | datetime | 日期,开始日期 |
| `end_t` | datetime | 日期,截止日期 |
| `rtype` | any | 用户自定义,回购类型 |
| `stype` | any | 用户自定义,股票种类 |
返回:any
## `Stock_RepurchaseBuyType(end_t)`
获得指定日前最近回购类型,系统参数:证券代码
| 参数 | 类型 | 说明 |
| ------- | -------- | ------------- |
| `end_t` | datetime | 日期,截止日期 |
返回:string
## `Stock_RepurchaseDate(end_t)`
获得指定日前最近回购日期,系统参数:证券代码
| 参数 | 类型 | 说明 |
| ------- | -------- | ------------- |
| `end_t` | datetime | 日期,截止日期 |
返回:datetime
## `Stock_RepurchaseDaysBetweenFrist(end_t)`
获得指定日前最近回购日距首次信息公布日天数,系统参数:证券代码
| 参数 | 类型 | 说明 |
| ------- | -------- | ------------- |
| `end_t` | datetime | 日期,截止日期 |
返回:any
## `Stock_RepurchaseEndT(end_t)`
获得指定日前最近回购方案结束日期,系统参数:证券代码
| 参数 | 类型 | 说明 |
| ------- | -------- | ------------- |
| `end_t` | datetime | 日期,截止日期 |
返回:datetime
## `Stock_RepurchaseFDate(end_t)`
获得指定日前最近一次回购的首次信息公布日,系统参数:证券代码
| 参数 | 类型 | 说明 |
| ------- | -------- | ------------- |
| `end_t` | datetime | 日期,截止日期 |
返回:any
## `Stock_RepurchaseHighPrice(end_t)`
获得指定日前最近累计回购最高价,系统参数:证券代码
| 参数 | 类型 | 说明 |
| ------- | -------- | ------------- |
| `end_t` | datetime | 日期,截止日期 |
返回:float
## `Stock_RepurchaseHighPriceQJ(beg_t, end_t, rtype, stype, ex_rate)`
获得区间内累计回购最高价(元)
| 参数 | 类型 | 说明 |
| --------- | -------- | ------------------- |
| `beg_t` | datetime | 日期,开始日期 |
| `end_t` | datetime | 日期,截止日期 |
| `rtype` | any | 用户自定义,回购类型 |
| `stype` | any | 用户自定义,股票种类 |
| `ex_rate` | any | 用户自定义,汇率类型 |
返回:float
## `Stock_RepurchaseIsFinished(end_t)`
获得指定日前最近累计回购方案是否结束,系统参数:证券代码
| 参数 | 类型 | 说明 |
| ------- | -------- | ------------- |
| `end_t` | datetime | 日期,截止日期 |
返回:bool
## `Stock_RepurchaseLowPrice(end_t)`
获得指定日前最近累计回购最低价,系统参数:证券代码
| 参数 | 类型 | 说明 |
| ------- | -------- | ------------- |
| `end_t` | datetime | 日期,截止日期 |
返回:float
## `Stock_RepurchaseLowPriceQJ(beg_t, end_t, rtype, stype, ex_rate)`
获得区间内累计回购最低价
| 参数 | 类型 | 说明 |
| --------- | -------- | ------------------- |
| `beg_t` | datetime | 日期,开始日期 |
| `end_t` | datetime | 日期,截止日期 |
| `rtype` | any | 用户自定义,回购类型 |
| `stype` | any | 用户自定义,股票种类 |
| `ex_rate` | any | 用户自定义,汇率类型 |
返回:float
## `Stock_RepurchaseNumOfYear(end_t, rtype, stype)`
获得指定日前最近一年累计回购方案次数
| 参数 | 类型 | 说明 |
| ------- | -------- | ------------------- |
| `end_t` | datetime | 日期,截止日期 |
| `rtype` | any | 用户自定义,回购类型 |
| `stype` | any | 用户自定义,股票种类 |
返回:any
## `Stock_RepurchaseNumQJ(beg_t, end_t, rtype, stype)`
获得区间内回购方案的个数,根据回购方式是否结束判断,截止EndT未结束的算一次
| 参数 | 类型 | 说明 |
| ------- | -------- | ------------------- |
| `beg_t` | datetime | 日期,开始日期 |
| `end_t` | datetime | 日期,截止日期 |
| `rtype` | any | 用户自定义,回购类型 |
| `stype` | any | 用户自定义,股票种类 |
返回:any
## `Stock_RepurchasePremium(end_t)`
获得指定日前最近累计回购折益率(%)=(最近累计回购均价/最近回购日期收盘价-1)\*100 系统参数:证券代码
| 参数 | 类型 | 说明 |
| ------- | -------- | ------------- |
| `end_t` | datetime | 日期,截止日期 |
返回:float
## `Stock_RepurchaseRDate(end_t)`
获得指定日前最近一次回购的公布日,系统参数:证券代码
| 参数 | 类型 | 说明 |
| ------- | -------- | ------------- |
| `end_t` | datetime | 日期,截止日期 |
返回:any
## `Stock_RepurchaseStockType(end_t)`
获得指定日前最近回购股票种类,系统参数:证券代码
| 参数 | 类型 | 说明 |
| ------- | -------- | ------------- |
| `end_t` | datetime | 日期,截止日期 |
返回:string
## `Stock_RepurchaseVol(end_t)`
获得指定日前最近累计回购数量,系统参数:证券代码
| 参数 | 类型 | 说明 |
| ------- | -------- | ------------- |
| `end_t` | datetime | 日期,截止日期 |
返回:float
## `Stock_RepurchaseVolOfYear(end_t, rtype, stype)`
获得指定日前最近一年累计回购数量
| 参数 | 类型 | 说明 |
| ------- | -------- | ------------------- |
| `end_t` | datetime | 日期,截止日期 |
| `rtype` | any | 用户自定义,回购类型 |
| `stype` | any | 用户自定义,股票种类 |
返回:float
## `Stock_RepurchaseVolQJ(beg_t, end_t, rtype, stype)`
获得区间内回购数量总和,区间已结束的方案累计回购数量+区间还未结束的方案回购数量
| 参数 | 类型 | 说明 |
| ------- | -------- | ------------------- |
| `beg_t` | datetime | 日期,开始日期 |
| `end_t` | datetime | 日期,截止日期 |
| `rtype` | any | 用户自定义,回购类型 |
| `stype` | any | 用户自定义,股票种类 |
返回:float
## `Stock_RepurchaseVolRate(end_t)`
获得指定日前最近累计回购数量占总股本(%)=最近累计回购数量/首次信息公布日总股本\*100% 系统参数:证券代码
| 参数 | 类型 | 说明 |
| ------- | -------- | ------------- |
| `end_t` | datetime | 日期,截止日期 |
返回:float
## `Stock_RepurchaseVolRate_B(end_t)`
获得指定日前最近累计回购数量占B股(%)=最近累计回购数量/首次信息公布日B股总股本\*100% 系统参数:证券代码
| 参数 | 类型 | 说明 |
| ------- | -------- | ------------- |
| `end_t` | datetime | 日期,截止日期 |
返回:float
## `Stock_RepurchaseVolRate_H(end_t)`
获得指定日前最近累计回购数量占H股(%)最近累计回购数量/首次信息公布日H股总股本\*100% 系统参数:证券代码
| 参数 | 类型 | 说明 |
| ------- | -------- | ------------- |
| `end_t` | datetime | 日期,截止日期 |
返回:float
## `Stock_RepurchaseVolRateOfYear(end_t, rtype, stype)`
获得指定日前最近一年累计回购数量占总股本(%)
| 参数 | 类型 | 说明 |
| ------- | -------- | ------------------- |
| `end_t` | datetime | 日期,截止日期 |
| `rtype` | any | 用户自定义,回购类型 |
| `stype` | any | 用户自定义,股票种类 |
返回:float
## `Stock_RepurchaseVolRateOfYear_B(end_t, rtype)`
获得指定日前最近一年累计回购数量占B股(%)
| 参数 | 类型 | 说明 |
| ------- | -------- | ------------------- |
| `end_t` | datetime | 日期,截止日期 |
| `rtype` | any | 用户自定义,回购类型 |
返回:float
## `Stock_RepurchaseVolRateOfYear_H(end_t, rtype)`
获得指定日前最近一年累计回购数量占H股(%)
| 参数 | 类型 | 说明 |
| ------- | -------- | ------------------- |
| `end_t` | datetime | 日期,截止日期 |
| `rtype` | any | 用户自定义,回购类型 |
返回:float
## `Stock_RepurchaseVolRateQJ(beg_t, end_t, rtype, stype)`
获得区间内累计回购数量占总股本(%) 区间已结束的累计回购数量/本次方案首次信息公布日的总股本+截止日最近一条累计回购数量/本次方案首次信息公布日的总股本
| 参数 | 类型 | 说明 |
| ------- | -------- | ------------------- |
| `beg_t` | datetime | 日期,开始日期 |
| `end_t` | datetime | 日期,截止日期 |
| `rtype` | any | 用户自定义,回购类型 |
| `stype` | any | 用户自定义,股票种类 |
返回:float
## `Stock_RepurchaseVolRateQJ_B(beg_t, end_t, rtype)`
获得区间内累计回购数量占B股(%)
| 参数 | 类型 | 说明 |
| ------- | -------- | ------------------- |
| `beg_t` | datetime | 日期,开始日期 |
| `end_t` | datetime | 日期,截止日期 |
| `rtype` | any | 用户自定义,回购类型 |
返回:float
## `Stock_RepurchaseVolRateQJ_H(beg_t, end_t, rtype)`
获得区间内累计回购数量占H股(%)
| 参数 | 类型 | 说明 |
| ------- | -------- | ------------------- |
| `beg_t` | datetime | 日期,开始日期 |
| `end_t` | datetime | 日期,截止日期 |
| `rtype` | any | 用户自定义,回购类型 |
返回:float