价格
Compute price for interest-rate, equity, or credit derivative instrument withAnalytic
价格
描述
[
根据定价对象计算仪器价格和相关定价信息价格
,价格Result
] =价格(inpPricer
,inpInstrument
)inpPricer
和仪器对象inpInstrument
.
TheAnalytic
定价者支持以下万博1manbetx定价对象:
[
adds an optional argument to specify sensitivities.价格
,价格Result
] =价格(___,inpSensitivity
)
例子
利用Bjerksund-Stensland Pricer and Black-Scholes Model to Price Spread Instrument
此示例显示了为欧洲演习定价的工作流程传播
当您使用的乐器黑色
模型和BjerksundStensland
定价法。
创造传播
仪器对象
利用FinInstrument
to create a传播
仪器对象。
传播Opt = fininstrument("Spread",'Strike',5,“锻炼”,datetime(2021,9,15),'optionType',"put",“锻炼”,"european",'Name',“ spread_option”)
speadopt = sprining with属性:optionType:“ put”罢工:5锻炼:“欧洲”锻炼:15-Sep-2021名称:“ spraive_option”
创造黑色
模型对象
利用Finmodel
to create a黑色
model object.
blackscholesmodel = finmodel(“黑色”,'Volatility',[0.2,0.1])
blackscholesmodel =具有属性的黑色choles:波动率:[0.2000 0.1000]相关性:[2x2 double]
创造比例
目的
创建一个公寓比例
object using比例
.
Settle = datetime(2018,9,15); Maturity = datetime(2023,9,15); Rate = 0.035; myRC = ratecurve('零',定居,成熟度,费率,'基础',12)
myRC = ratecurve with properties: Type: "zero" Compounding: -1 Basis: 12 Dates: 15-Sep-2023 Rates: 0.0350 Settle: 15-Sep-2018 InterpMethod: "linear" ShortExtrapMethod: "next" LongExtrapMethod: "previous"
创造BjerksundStensland
价格r Object
利用Finpricer
to create aBjerksundStensland
价格object and use the比例
object for the'DiscountCurve'
name-value pair argument.
outPricer = finpricer(“分析”,'模型',blackscholesmodel,'DiscountCurve',myrc,'现货价格',[100,105],'DividendValue',[0.09,0.17],“定价”,"BjerksundStensland")
Expricer = bjerksundstensland具有属性:discountCurve:[1x1 ratecurve]模型:[1x1 finmodel.blackscholes] spotprice:[100 105] videndendValue:[0.0900 0.1700 0.1700]
价格传播
乐器
利用价格
to compute the price and sensitivities for the传播
乐器。
[Price,extpr] = Price(Expricer,SpraiveOpt,[“全部”)))
价格= 7.0596
extpr =具有属性的定价:结果:[1x7表] PricerData:[]
expr.results
ans =1×7 table价格Delta Gamma Lambda Vega Theta Rho ______ ____________________ ______________________ __________________ ________________ ______ _______ 7.0596 -0.23249 0.27057 0.0069887 0.0055319 -3.2932 3.8327 41.938 18.303 1.1011 -5.6943
使用Rubinstein Pricer和Black-Scholes模型来定价集团仪器的绝对回报
This example shows the workflow to price the absolute return for threeCliquet
instruments when you use a黑色
模型和Rubinstein
定价法。
创造比例
目的
创建一个公寓比例
object using比例
.
Settle = datetime(2018,9,15); Maturity = datetime(2023,9,15); Rate = 0.035; myRC = ratecurve('零',定居,成熟度,费率,基础= 12)
myRC = ratecurve with properties: Type: "zero" Compounding: -1 Basis: 12 Dates: 15-Sep-2023 Rates: 0.0350 Settle: 15-Sep-2018 InterpMethod: "linear" ShortExtrapMethod: "next" LongExtrapMethod: "previous"
创造Cliquet
仪器对象
利用FinInstrument
to create aCliquet
三个集团仪器的仪器对象。
重置=定居 +年(0:0.25:1);cliquetopt = fininstrument("Cliquet",重置=重置,initialstrike = [140; 150; 160],锻炼="european",名称="cliquet_option")
CliquetOpt=3×1对象3x1 Cliquet array with properties: OptionType ExerciseStyle ResetDates LocalCap LocalFloor GlobalCap GlobalFloor ReturnType InitialStrike Name
创造黑色
模型对象
利用Finmodel
to create a黑色
model object.
blackscholesmodel = finmodel(“黑色”,Volatility=0.28)
黑色Model = BlackScholes with properties: Volatility: 0.2800 Correlation: 1
创造Rubinstein
价格r Object
利用Finpricer
to create aRubinstein
价格object and use the比例
object for the'DiscountCurve'
name-value pair argument.
outPricer = finpricer(“分析”,discountCurve = myrc,model = blackscholesmodel,spotprice = 135,ratendendvalue = 0.025,pricingmethod =“鲁宾斯坦”)
outPricer = Rubinstein with properties: DiscountCurve: [1x1 ratecurve] Model: [1x1 finmodel.BlackScholes] SpotPrice: 135 DividendValue: 0.0250 DividendType: "continuous"
价格Cliquet
乐器s
利用价格
计算三个的价格和敏感性Cliquet
仪器。
[Price, outPR] = price(outPricer,CliquetOpt,“全部”)
价格=3×128.1905 25.3226 23.8168
outPR=3×1对象带有属性的3x1定价阵列:结果PricerData
expr.results
ans =1×7 tablePrice Delta Gamma Lambda Vega Rho Theta ______ _______ ________ ______ ______ ______ ______ 28.191 0.59697 0.020662 2.8588 105.38 60.643 -14.62
ans =1×7 table价格Delta Gamma Lambda Vega Rho Theta ______ _______ ________ ______ ______ ______ _______ 25.323 0.41949 0.016816 2.2364 100.47 55.367 -11.708
ans =1×7 table价格delta gamma lambda vega rho theta ______ _______ ___________________________________________________________________________________________________________________________________________-11113.113例0.29729 0.29729 0.011133 1.6851 93.219 51.616 -7.511
输入参数
inpPricer
—定价对象
BjerksundStensland
object|Ikedakunitomo
object|Black
object|黑色
object|cdsblack
object|Conzeviswanathan
object|Goldmansosingatto
object|海南卡特
object|赫尔白
object|Heston
object|Kemnavorst
object|Kirk
object|Levy
object|Normal
object|Rubinstein
object|RollGeskeWhaley
object|SABR
object|TurnbullWakeman
object
inpInstrument
—乐器object
帽
object|地面
object|交换
object|Vanilla
object|Lookback
object|部分lookback
object|Barrier
object|双重行驶
object|亚洲
object|传播
object|Cliquet
object|VarianceSwap
object|CDSOption
object
仪器对象(以前使用FinInstrument
), specified as a scalar or a vector.
使用标量万博1manbetx或向量的受支持的仪器对象是:
使用标量万博1manbetx的受支持的仪器对象是:
数据类型:object
inpSensitivity
—计算敏感性清单
[]
(default) |string array with values dependent on pricer object|细胞array of character vectors with values dependent on pricer object
(Optional) List of sensitivities to compute, specified as aNOUT
-经过-1
或a1
-经过-NOUT
字符向量或字符串数组的单元格数组。
The supported sensitivities depend on the pricing method.
inpPricer 目的 |
万博1manbetx支持的敏感性 |
---|---|
BjerksundStensland |
{'delta','gamma','vega', 'theta','rho','price','lambda'} |
Ikedakunitomo |
{'delta','gamma','vega','theta','rho','price','lambda'} |
Black |
'price' |
黑色 |
{'delta','gamma','vega','theta','rho','price','lambda'} |
cdsblack |
'price' |
Conzeviswanathan |
{'delta','gamma','vega','theta','rho','price','lambda}' |
Goldmansosingatto |
{'delta','gamma','vega','theta','rho','price','lambda}' |
海南卡特 |
{'delta','gamma','vega','theta','rho','price','lambda}' |
赫尔白 |
'price' |
Heston |
'price' |
Kemnavorst |
{'delta','gamma','vega','theta','rho','price','lambda'} |
Kirk |
{'delta','gamma','vega','theta','rho','price','lambda'} |
Levy |
{'delta','gamma','vega','theta','rho','price','lambda'} |
Normal |
'price' |
RollGeskeWhaley |
{'delta','gamma','vega','theta','rho','price','lambda'} |
Rubinstein |
{'delta','gamma','vega','theta','rho','price','lambda'} |
SABR |
'price' |
TurnbullWakeman |
{'delta','gamma','vega','theta','rho','price',} |
inpsensitivity = {'all'}
或者inpSensitivity = ["All"]
specifies that all sensitivities for the pricing method are returned. This is the same as specifyinginpSensitivity
to include each sensitivity.
例子:inpSensitivity = ["delta","gamma","vega","lambda","rho","theta","price"]
数据类型:细胞
|string
Output Arguments
价格
- 仪器价格
数字
仪器价格,作为数字返回。
价格Result
— Price result
价格Result
object
价格结果,返回价格Result
object. The object has the following fields:
价格Result.Results
——(如果表的结果,包括敏感性you specifyinpSensitivity
)Priceresult.pricerdata
— Structure for pricer dataNote
定价时
VarianceSwap
,定价
is returned.
Note
TheinpPricer
options that do not support sensitivities do not return a价格Result
. For example, there is no价格Result
returned for when using aBlack
,cdsblack
,赫尔白
,Normal
,Heston
, orSABR
定价法。
Version History
matlab命令
You clicked a link that corresponds to this MATLAB command:
通过在MATLAB命令窗口中输入该命令。Web浏览器不支持MATLAB命令。万博1manbetx
选择一个网站
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select:.
您还可以从以下列表中选择一个网站:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
美洲
- AméricaLatina(Español)
- 加拿大(英语)
- 美国(英语)