✨ feat(tsl-api-reference): expand API and module coverage
This commit is contained in:
+25
@@ -285,3 +285,28 @@ setSysParam(pn_stock(), 'SZ000002');
|
||||
return compustat017(20111231);
|
||||
// 输出:0.13
|
||||
```
|
||||
|
||||
## `compustat_value(r_date, id)`
|
||||
|
||||
声明:function
|
||||
|
||||
返回当前系统股票在指定报告期和基本面数据 ID 对应的数值
|
||||
|
||||
<!-- tags: 金融 财务分析 COMPUSTAT 基本面 报告期 财务指标 数据ID -->
|
||||
|
||||
| 参数 | 类型 | 说明 |
|
||||
| -------- | ------- | ------------- |
|
||||
| `r_date` | integer | 报告期 |
|
||||
| `id` | integer | 基本面数据 ID |
|
||||
|
||||
返回:real
|
||||
|
||||
### 示例
|
||||
|
||||
范例01:查询万科 A 2011 年合并利润分配表的营业利润
|
||||
|
||||
```tsl
|
||||
setSysParam(pn_stock(), "SZ000002");
|
||||
return compustat_value(20111231, 9901201);
|
||||
// 输出:15763216697.19
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user