天软金融分析.NET函数大全 > 金融函数 > 期权 > 结算参数

OptionGetDepositByDate    

简述

  获取指定日期权保证金,考虑开仓、维持两种情况。
     开仓使用合约昨结算、标的昨收计算
     维持使用合约今结算、标的收盘计算
     详细算法参考:http://www.tinysoft.com.cn/tsdn/helpdoc/display.tsl?id=15500
定义
OptionGetDepositByDate(OptionID:String;Endt:TDateTime;OpenInterest:Integer;IsOpen:Integer):real
参数
名称类型说明
OptionIDString证券,期权代码
EndtTDateTime日期,截止日期
OpenInterestInteger整数,持仓量
IsOpenInteger用户自定义,是否开仓
显示名 取值
开仓 1
维持 0
返回real实数,获取指定日期权保证金
  • 范例

       // 开仓10张空头期权"OP10008621"在20250116需要缴纳的保证金
       OptionID:="OP10008621";
       endt:=20250116T;
       OpenInterest:=10;
       return OptionGetDepositByDate(OptionID,Endt,OpenInterest,0);
       //结果:9450.1972
相关