Files
csh 13be5ea0aa feat(tsl-api-reference): index class and unit APIs
Migrate reference pages to declaration-line storage and rebuild the
13-column index.

Add qualified member lookup plus regression and end-to-end coverage.
2026-07-29 15:47:46 +08:00

27 lines
781 B
Markdown

# 指数 / 其他
## `simulateIndex()`
声明:function
指数计算基类,作为类被调用时使用。
返回:any
## `simulateIndexDemo(index_id, begt, endt, is_dividend, shares_type, stock_weight)`
声明:function
指数计算范例.
| 参数 | 类型 | 说明 |
| -------------- | -------- | ------------------------ |
| `index_id` | string | 指数,指数或行业代码 |
| `begt` | datetime | 日期,开始日 |
| `endt` | datetime | 日期,截止日 |
| `is_dividend` | any | 用户自定义,指数类型 |
| `shares_type` | any | 用户自定义,股本数据 |
| `stock_weight` | any | 用户自定义,权重因子选择 |
返回:any