Skip to content

Commit ea0c8b5

Browse files
damienbarkerjenkins
authored andcommitted
Resolve QPR-12014 configurable sensi shift sizes, part 2 of 3
1 parent f28b8d4 commit ea0c8b5

84 files changed

Lines changed: 2063 additions & 729 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Examples/Example_15/ExpectedOutput/flows.csv

Lines changed: 115 additions & 115 deletions
Large diffs are not rendered by default.

Examples/Example_15/ExpectedOutput/npv.csv

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#TradeId,TradeType,Maturity,MaturityTime,NPV,NpvCurrency,NPV(Base),BaseCurrency,Notional,NotionalCurrency,Notional(Base),NettingSet,CounterParty
2-
BERMUDAN_SWAPTION,Swaption,2038-10-01,22.652317,-3140651.967156,EUR,-3140651.967156,EUR,10000000.00,EUR,10000000.00,CPTY_A,CPTY_A
2+
BERMUDAN_SWAPTION,Swaption,2038-10-01,22.652317,-3115851.065563,EUR,-3115851.065563,EUR,10000000.00,EUR,10000000.00,CPTY_A,CPTY_A
33
BOND,Bond,2021-02-03,4.994783,12902649.282760,EUR,12902649.282760,EUR,10000000.00,EUR,10000000.00,CPTY_A,CPTY_A
44
Bond_Floating,Bond,2021-02-03,4.994783,10765048.489931,EUR,10765048.489931,EUR,10000000.00,EUR,10000000.00,,CPTY_C
55
CAP_EUR,CapFloor,2026-02-09,10.011221,-6881.951398,EUR,-6881.951398,EUR,1000000.00,EUR,1000000.00,CPTY_A,CPTY_A
66
CAP_USD,CapFloor,2026-02-09,10.011221,-14245.033135,USD,-12580.206366,EUR,1000000.00,USD,883129.32,CPTY_A,CPTY_A
77
CC_SWAP_EUR_USD,Swap,2026-02-05,10.000262,-23643219.533172,USD,-20880020.288282,EUR,100000000.00,USD,88312931.57,CPTY_A,CPTY_A
8-
CC_SWAP_EUR_USD_RESET,Swap,2026-02-05,10.000262,-22174553.893030,USD,-19582998.606448,EUR,100000000.00,USD,88312931.57,CPTY_A,CPTY_A
8+
CC_SWAP_EUR_USD_RESET,Swap,2026-02-05,10.000262,-22174553.893030,USD,-19582998.606449,EUR,100000000.00,USD,88312931.57,CPTY_A,CPTY_A
99
CDS,CreditDefaultSwap,2026-03-20,10.118070,805.422071,USD,711.291842,EUR,10000000.00,USD,8831293.16,CPTY_B,CPTY_B
1010
CPI_Swap,Swap,2021-07-19,5.449577,829612.548929,GBP,1021768.347989,EUR,10000000.00,GBP,12316211.34,CPTY_A,CPTY_A
1111
EQ_CALL_LUFT,EquityOption,2018-03-01,2.066015,1872.588407,EUR,1872.588407,EUR,9486.00,EUR,9486.00,CPTY_A,CPTY_A

Examples/Example_15/ExpectedOutput/scenario.csv

Lines changed: 382 additions & 382 deletions
Large diffs are not rendered by default.

Examples/Example_15/ExpectedOutput/sensitivity.csv

Lines changed: 78 additions & 78 deletions
Large diffs are not rendered by default.

Examples/Example_15/ExpectedOutput/stresstest.csv

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#TradeId,ScenarioLabel,Base NPV,Scenario NPV,Sensitivity
2-
BERMUDAN_SWAPTION,parallel_rates,-3125432.29,-2074397.25,1051035.04
3-
BERMUDAN_SWAPTION,twist,-3125432.29,-3196530.22,-71097.93
2+
BERMUDAN_SWAPTION,parallel_rates,-3100941.24,-2043549.12,1057392.12
3+
BERMUDAN_SWAPTION,twist,-3100941.24,-3165028.92,-64087.68
44
BOND,parallel_rates,12902111.76,12614454.85,-287656.90
55
BOND,twist,12902111.76,12801562.04,-100549.71
66
Bond_Floating,parallel_rates,10765631.07,10511973.88,-253657.19

Examples/Example_15/ExpectedOutput/var.csv

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
#Portfolio,RiskClass,RiskType,Quantile_0.010000,Quantile_0.050000,Quantile_0.950000,Quantile_0.990000
2-
(all),(all),(all),-51288984.245165,-36325951.993862,35903557.993863,50866590.245165
3-
PF1,(all),(all),-50726701.680738,-35873450.367032,35826125.367033,50679376.680738
4-
PF2,(all),(all),-6556365.963796,-4690642.412803,4315573.412803,6181296.963796
5-
(all),(all),DeltaGamma,-51283793.157401,-36320855.846305,35908195.846305,50871133.157401
6-
PF1,(all),DeltaGamma,-50726701.680738,-35873450.367032,35826125.367033,50679376.680738
7-
PF2,(all),DeltaGamma,-6548899.269859,-4683937.288745,4318602.288745,6183564.269859
8-
(all),(all),Vega,-186821.023493,-133518.324441,123784.324441,177087.023493
9-
PF2,(all),Vega,-186821.023493,-133518.324441,123784.324441,177087.023493
10-
(all),InterestRate,(all),-37044510.252175,-26255557.703812,25824845.703812,36613798.252175
2+
(all),(all),(all),-51290159.407976,-36327329.388175,35901204.388175,50864034.407976
3+
PF1,(all),(all),-50726701.680738,-35873450.367032,35826125.367032,50679376.680738
4+
PF2,(all),(all),-6557646.195612,-4692094.096579,4313294.096579,6178846.195612
5+
(all),(all),DeltaGamma,-51283164.981876,-36320419.015922,35907709.015922,50870454.981876
6+
PF1,(all),DeltaGamma,-50726701.680738,-35873450.367032,35826125.367032,50679376.680738
7+
PF2,(all),DeltaGamma,-6548636.969272,-4683759.151709,4318374.151709,6183251.969272
8+
(all),(all),Vega,-177910.952279,-127757.589806,114342.589806,164495.952279
9+
PF2,(all),Vega,-177910.952279,-127757.589806,114342.589806,164495.952279
10+
(all),InterestRate,(all),-37045418.328177,-26256746.253322,25822303.253322,36610975.328177
1111
PF1,InterestRate,(all),-36286970.228997,-25662864.686621,25621789.686621,36245895.228997
12-
PF2,InterestRate,(all),-6554936.762631,-4691765.708860,4302128.708861,6165299.762631
13-
(all),InterestRate,DeltaGamma,-37039004.674983,-26250169.181150,25829669.181150,36618504.674983
12+
PF2,InterestRate,(all),-6556216.192571,-4693216.825666,4299848.825666,6162848.192571
13+
(all),InterestRate,DeltaGamma,-37038123.786470,-26249553.669032,25829003.669032,36617573.786470
1414
PF1,InterestRate,DeltaGamma,-36286970.228997,-25662864.686621,25621789.686621,36245895.228997
15-
PF2,InterestRate,DeltaGamma,-6547516.546540,-4685023.433061,4305598.433061,6168091.546540
16-
(all),InterestRate,Vega,-176663.630137,-126406.512686,116194.512686,166451.630137
17-
PF2,InterestRate,Vega,-176663.630137,-126406.512686,116194.512686,166451.630137
15+
PF2,InterestRate,DeltaGamma,-6547253.865097,-4684845.026740,4305370.026740,6167778.865097
16+
(all),InterestRate,Vega,-167057.011413,-120153.281333,106260.281333,153164.011413
17+
PF2,InterestRate,Vega,-167057.011413,-120153.281333,106260.281333,153164.011413
1818
(all),Inflation,(all),-304149.096627,-215013.224331,215263.224331,304399.096627
1919
PF1,Inflation,(all),-304149.096627,-215013.224331,215263.224331,304399.096627
2020
(all),Inflation,DeltaGamma,-304149.096627,-215013.224331,215263.224331,304399.096627

Examples/Example_15/Input/ore.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<Parameter name="curveConfigFile">../../Input/curveconfig.xml</Parameter>
1313
<Parameter name="conventionsFile">../../Input/conventions.xml</Parameter>
1414
<Parameter name="marketConfigFile">../../Input/todaysmarket.xml</Parameter>
15-
<Parameter name="pricingEnginesFile">../../Input/pricingengine.xml</Parameter>
15+
<Parameter name="pricingEnginesFile">pricingengine.xml</Parameter>
1616
<Parameter name="portfolioFile">portfolio.xml</Parameter>
1717
<Parameter name="observationModel">None</Parameter>
1818
</Setup>

Examples/Example_15/Input/ore_var.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<Parameter name="curveConfigFile">../../Input/curveconfig.xml</Parameter>
1313
<Parameter name="conventionsFile">../../Input/conventions.xml</Parameter>
1414
<Parameter name="marketConfigFile">../../Input/todaysmarket.xml</Parameter>
15-
<Parameter name="pricingEnginesFile">../../Input/pricingengine.xml</Parameter>
15+
<Parameter name="pricingEnginesFile">pricingengine.xml</Parameter>
1616
<Parameter name="portfolioFile">portfolio.xml</Parameter>
1717
<Parameter name="observationModel">None</Parameter>
1818
</Setup>

0 commit comments

Comments
 (0)