Files
playbook/docs/tsl/codegen/dotnet/indices/misc.md
T

23 lines
743 B
Markdown

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