Files
playbook/skills/tsl-api-reference/references/codegen/dotnet/financial/fund-intermediate.md
T
csh 9010829c6d feat(tsl-api-reference): expand and reorganize api catalog
Flatten builtin pages, add third-party and platform scopes, and import financial and data warehouse references.

Keep the existing generated index without rebuilding after signature normalization.
2026-08-10 18:26:24 +08:00

112 lines
2.3 KiB
Markdown

# 金融 / 基金 / 中间函数
## `fundExNetAssetWeeklyList(ratio_arr)`
声明:function
修正后的基金净值,与系统参数(基金)相关。按照基金复权表重新计算基金净值
| 参数 | 类型 | 说明 |
| ----------- | ----- | ---------------- |
| `ratio_arr` | array | 数组。基金复权表 |
返回:array
### 示例
范例01:调用函数
```tsl
setSysParam(PN_Stock(), 'OF000001');
return fundExNetAssetWeeklyList();
```
## `fundExRatio()`
声明:function
基金复权比。与系统股票pn_stock()、当前时间pn_date(),相关
返回:real
### 示例
范例01:调用函数
```tsl
// OF162714的基金复权比。
setSysParam(pn_stock(), "OF162714");
return fundExRatio();
// 问题一上个函数类似
// 输出:0
```
## `fundExRatioOfLido()`
声明:function
基金复权比(Lido数据提供商)。与系统股票pn_stock()、当前时间pn_date(),相关
返回:real
## `fundExRatioOfWind()`
声明:function
基金复权比(Wind数据提供商),与系统参数(股票、当前时间)相关
返回:float
## `fundWeeklyYTM(t)`
声明:function
基金收益率(复权)。与系统股票pn_stock()、当前时间pn_date(),相关
| 参数 | 类型 | 说明 |
| ---- | ----- | ------------ |
| `t` | array | 数据表类型, |
返回:array
### 示例
范例01:OF162714基金收益率(复权)
```tsl
// OF162714基金收益率(复权)。
setsysparam(pn_stock(), "OF162714");
Return FundWeeklyYTM(Array());
```
## `intersectionAlphaBetaValue(t_1, t_2, alpha, beta, residual, corr)`
声明:function
α,β,参差。与系统股票pn_stock()、当前时间pn_date(),相关
| 参数 | 类型 | 说明 |
| ---------- | ----- | ------------------ |
| `t_1` | array | 数据表类型; |
| `t_2` | array | 数据表类型; |
| `alpha` | real | 实数类型; |
| `beta` | real | 实数类型; |
| `residual` | real | 实数类型; |
| `corr` | real | 实数类型,相关系数 |
返回:array
### 示例
范例01:调用函数
```tsl
// t1和t2序列的相关指标
t1 := spec(nDay(30, '涨幅', stockZf3()), 'SZ000002');
t2 := spec(nDay(30, '涨幅', stockZf3()), 'SH600001');
intersectionAlphaBetaValue(t1, t2, a, b, c, d);
return array(a, b, c, c);
```