Skip to content

Commit

Permalink
Flat shift for Equity curves (PnL)
Browse files Browse the repository at this point in the history
  • Loading branch information
gavbrennan committed Sep 10, 2024
1 parent 6c10468 commit 371031f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions src/Qwack.Models/Risk/BasicMetrics.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1387,6 +1387,15 @@ public static ICube AssetParallelDelta(this IPvModel pvModel, ICurrencyProvider
SpotCalendar = pc.SpotCalendar,
SpotLag = pc.SpotLag
},

EquityPriceCurve eqc => new EquityPriceCurve(eqc.BuildDate, eqc.Spot + bumpSize, eqc.Currency?.Ccy, eqc.IrCurve, eqc.SpotDate, currencyProvider)
{
Currency = eqc.Currency,
AssetId = AssetId,
SpotCalendar = eqc.SpotCalendar,
SpotLag = eqc.SpotLag
},

_ => throw new Exception("Unable to handle curve type for flat shift"),
};
var newVanillaModel = model.Clone();
Expand Down
2 changes: 1 addition & 1 deletion version.props
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project>
<PropertyGroup>
<VersionPrefix>0.8.85</VersionPrefix>
<VersionPrefix>0.8.86</VersionPrefix>
</PropertyGroup>
</Project>
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.8.85
0.8.86

0 comments on commit 371031f

Please sign in to comment.