Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LinearTsrPricer: fix past payment dates, support overnight swap indices, add missing include #1775

Merged
merged 4 commits into from
Mar 22, 2024

Conversation

pcaspers
Copy link
Contributor

No description provided.

@pcaspers pcaspers changed the title LinearTsrPricer: fix handling of past payment dates, add missing include LinearTsrPricer: fix past payment dates, support overnight swap indices, add missing include Aug 26, 2023
@coveralls
Copy link

coveralls commented Aug 26, 2023

Coverage Status

coverage: 72.481% (-0.001%) from 72.482%
when pulling fffcb9f on pcaspers:fixLinearTsr
into 7356c36 on lballabio:master.

pcaspers added a commit to OpenSourceRisk/QuantLib that referenced this pull request Sep 7, 2023
Comment on lines 150 to 161
if(auto on = ext::dynamic_pointer_cast<OvernightIndexedSwapIndex>(swapIndex_)) {
onSwap_ = on->underlyingSwap(fixingDate_);
swapRateValue_ = onSwap_->fairRate();
annuity_ = 1.0E4 * std::fabs(onSwap_->fixedLegBPS());
swapFixedLeg = onSwap_->fixedLeg();
}
else {
swap_ = swapIndex_->underlyingSwap(fixingDate_);
swapRateValue_ = swap_->fairRate();
annuity_ = 1.0E4 * std::fabs(swap_->fixedLegBPS());
swapFixedLeg = swap_->fixedLeg();
}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can probably be reworked now that #1789 is merged

Copy link
Contributor

This PR was automatically marked as stale because it has been open 60 days with no activity. Remove stale label or comment, or this will be closed in two weeks.

@github-actions github-actions bot added the stale label Nov 19, 2023
@lballabio lballabio removed the stale label Nov 21, 2023
Copy link
Contributor

This PR was automatically marked as stale because it has been open 60 days with no activity. Remove stale label or comment, or this will be closed in two weeks.

@github-actions github-actions bot added the stale label Jan 21, 2024
@lballabio lballabio removed the stale label Jan 21, 2024
Copy link
Contributor

This PR was automatically marked as stale because it has been open 60 days with no activity. Remove stale label or comment, or this will be closed in two weeks.

@github-actions github-actions bot added the stale label Mar 22, 2024
@lballabio lballabio removed the stale label Mar 22, 2024
@lballabio lballabio added this to the Release 1.34 milestone Mar 22, 2024
@lballabio lballabio merged commit c7943e5 into lballabio:master Mar 22, 2024
47 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants