Skip to content

Commit

Permalink
VaR fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gavbrennan committed Jul 25, 2024
1 parent 9b79d2a commit bbc66fc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Qwack.Models/Risk/VaR/VaREngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ public Dictionary<string, double> GetContributions(string scenarioId)
public (double VaR, string ScenarioId, double cVaR) CalculateVaRFromResults(double ci, Currency ccy, Portfolio pf, bool parallelize = true)
{
var basePv = _basePvCube.SumOfAllRows;
var results = _resultsCache.ToDictionary(x => x.Key, x => x.Value.SumOfAllRows);
var results = _resultsCache.ToDictionary(x => x.Key, x => x.Value.SumOfAllRows - basePv);

if (results.Count == 0)
{
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.69</VersionPrefix>
<VersionPrefix>0.8.70</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.69
0.8.70

0 comments on commit bbc66fc

Please sign in to comment.