OP_SelectOption
简述
标的指定条件交易的期权合约列表
OP_SelectOption(StockID:String;Endt:TDateTime;OptionType:Integer;MaturityDateType:Integer;Ctype:Integer;Ntpye:Integer):Array
| 名称 | 类型 | 说明 |
|---|
| StockID | String | 字符串。期权品种代码 |
| Endt | TDateTime | 日期。截止日 |
| OptionType | integer | 用户自定义。期权类型,取值如下: |
| MaturityDateType | integer | 整数。到期日类型 |
| Ctype | integer | 用户自定义。合约类型,取值如下: |
| Ntpye | integer | 整数。档位 |
| 返回 | Array,TableArray | 数组。期权合约列表 |
//返回50ETF为标的,20230511T交易类型为认购的近月平值期权合约列表
return OP_SelectOption("SH510050",20230511T,1,0,0,0);
//结果:array("OP10005274")