GetPriceOfUnderlying
简述
指定日期权标的证券价格
GetPriceOfUnderlying(OptionID:String;EndT:TDateTime;isOpen:Integer):Real
名称 | 类型 | 说明 |
---|
OptionID | String | 字符串,期权代码 |
EndT | TDateTime | 日期型时间,截止日 |
isOpen | Integer | 是否获取期权标的证券昨价格 |
返回 | Real | 期权标的证券价格 |
范例一:
//期权标的证券系统昨收
OptionID:='OP10004679';
EndT:=inttodate(20230104);
isOpen:=1;
return GetPriceOfUnderlying(OptionID,EndT,isOpen);
//结果:2.651
范例二:
//期权标的证券收盘
OptionID:='OP10004679';
EndT:=inttodate(20230104);
return GetPriceOfUnderlying(OptionID,EndT);
//结果:2.66