feat(tsl-api-reference): expand API and module coverage

This commit is contained in:
csh
2026-08-14 17:12:55 +08:00
parent 8f1056130d
commit 3d3036ebe1
571 changed files with 47842 additions and 14458 deletions
@@ -317,3 +317,35 @@ rendt := dateToInt(20200411T); // 星期六
return infoIdExt(328003, rendt);
// 返回的星期五净值InfoIdExt(328003,20200410):1.11
```
## `stockReport(stock_id, info_id, report_date)`
声明:function
返回证券指定报告期的基本面指标值,结果类型由 `info_id` 对应的数据类型决定
<!-- tags: 金融 基本面 报告期 财务指标 StockReport -->
| 参数 | 类型 | 说明 |
| ------------- | ------- | ----------------------- |
| `stock_id` | string | 证券代码 |
| `info_id` | integer | 基本面指标 ID |
| `report_date` | integer | 报告期,格式为 YYYYMMDD |
返回:any
### 示例
范例01:查询浦发银行 2009 年报的货币资金
```tsl
return stockReport("SH600000", 44002, 20091231);
// 输出:1157096238.65
```
范例02:查询浦发银行 2009 年报采用的会计准则
```tsl
return stockReport("SH600000", 44146, 20091231);
// 输出:新
```