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.
6.7 KiB
6.7 KiB
金融 / 期权 / 期权主力合约 / 废弃
optionCZLId(index_id, end_t, option_type, check_type)
声明:function
返回指定日指定标的的期权次主力合约,只适用于日线,规则为:1)昨日持仓量第二大;2)昨日成交量第二大
| 参数 | 类型 | 说明 |
|---|---|---|
index_id |
string | 字符串。标的代码 |
end_t |
t_date_time | 日期。截止日期 |
option_type |
integer | 用户自定义。期权类型,取值如下: |
check_type |
integer | 用户自定义。筛选类型,取值如下: |
返回:string
示例
范例01:调用函数
// "SH510050"在20210331日的期权次主力合约
return optionCzlId("SH510050", 20210331T, 0, -1);
// 输出:OP10003273
optionCZLId2(end_t, option_type, check_type)
声明:function
返回指定日指定标的的期权次主力合约,与系统参数(股票)有关。只适用于日线,规则为:1)昨日持仓量第二大;2)昨日成交量第二大
| 参数 | 类型 | 说明 |
|---|---|---|
end_t |
t_date_time | 日期。截止日期 |
option_type |
integer | 用户自定义。期权类型,取值如下: |
check_type |
integer | 用户自定义。筛选类型,取值如下: |
返回:string
示例
范例01:调用函数
// "SH510050"在20210331日的期权次主力合约
setSysParam(pn_stock(), 'SH510050');
return optionCzlId2(20210331T, 0, -1);
// 输出:OP10003273
optionFlatCZLId(index_id, end_t, option_type, check_type)
声明:function
返回指定日指定标的的期权平值次主力合约,只适用于日线,规则为:1)昨日持仓量第二大;2)昨日成交量第二大
| 参数 | 类型 | 说明 |
|---|---|---|
index_id |
string | 字符串。标的代码 |
end_t |
t_date_time | 日期。截止日期 |
option_type |
integer | 用户自定义。期权类型,取值如下: |
check_type |
integer | 用户自定义。筛选类型,取值如下: |
返回:string
示例
范例01:调用函数
// "SH510050"在20210331日的期权平值次主力合约
return optionFlatCzlId("SH510050", 20210331T, 0, 0);
// 输出:OP10003274
optionFlatCZLId2(end_t, option_type, check_type)
声明:function
返回指定日指定标的的期权平值次主力合约,与系统参数(股票)相关。只适用于日线,规则为:1)昨日持仓量第二大;2)昨日成交量第二大
| 参数 | 类型 | 说明 |
|---|---|---|
end_t |
t_date_time | 日期。截止日期 |
option_type |
integer | 用户自定义。期权类型,取值如下: |
check_type |
integer | 用户自定义。筛选类型,取值如下: |
返回:string
示例
范例01:调用函数
// "SH510050"在20210331日的期权平值次主力合约
setSysParam(pn_stock(), "SH510050");
return optionFlatCzlId2(20210331T, 0, 0);
// 输出:OP10003274
optionFlatZLId(index_id, end_t, option_type, check_type)
声明:function
返回指定日指定标的的期权平值主力合约,只适用于日线,规则为:1)昨日持仓量最大;2)昨日成交量最大
| 参数 | 类型 | 说明 |
|---|---|---|
index_id |
string | 字符串。标的代码 |
end_t |
t_date_time | 日期。截止日期 |
option_type |
integer | 用户自定义。期权类型,取值如下: |
check_type |
integer | 用户自定义。筛选类型,取值如下: |
返回:string
示例
范例01:调用函数
// "SH510050"在20210331日的期权平值主力合约
return optionFlatZlId("SH510050", 20210331T, 0, 0);
// 输出:OP10003265
optionFlatZLId2(end_t, option_type, check_type)
声明:function
返回指定日指定标的的期权平值主力合约,与系统参数(股票)有关。只适用于日线,规则为:1)昨日持仓量最大;2)昨日成交量最大
| 参数 | 类型 | 说明 |
|---|---|---|
end_t |
t_date_time | 日期。截止日期 |
option_type |
integer | 用户自定义。期权类型,取值如下: |
check_type |
integer | 用户自定义。筛选类型,取值如下: |
返回:string
示例
范例01:调用函数
// "SH510050"在20210331日的期权平值主力合约
setSysParam(pn_stock(), "SH510050");
return optionFlatZlId2(20210331T, 0, 0);
// 输出:OP10003265
optionZLId(index_id, end_t, option_type, check_type)
声明:function
返回指定日指定标的的期权主力合约,只适用于日线,规则为:1)昨日持仓量最大;2)昨日成交量最大
| 参数 | 类型 | 说明 |
|---|---|---|
index_id |
string | 字符串。标的代码 |
end_t |
t_date_time | 日期。截止日期 |
option_type |
integer | 用户自定义。期权类型,取值如下: |
check_type |
integer | 用户自定义。筛选类型,取值如下: |
返回:string
示例
范例01:调用函数
// "SH510050"在20210331日的期权主力合约
return optionZlId("SH510050", 20210331T, 0, -1);
// 输出:OP10003266
optionZLId2(end_t, option_type, check_type)
声明:function
返回指定日指定标的的期权主力合约,与系统参数(股票)相关。只适用于日线,规则为:1)昨日持仓量最大;2)昨日成交量最大
| 参数 | 类型 | 说明 |
|---|---|---|
end_t |
t_date_time | 日期。截止日期 |
option_type |
integer | 用户自定义。期权类型,取值如下: |
check_type |
integer | 用户自定义。筛选类型,取值如下: |
返回:string
示例
范例01:调用函数
// "SH510050"在20210331日的期权主力合约
setSysParam(pn_stock(), "SH510050");
return optionZlId2(20210331T, 0, -1);
// 输出:OP10003266