Skip to content

Clarify market data assumptions in swap pricing example - #2789

Open
seanxuu wants to merge 1 commit into
OpenGamma:mainfrom
seanxuu:issue-2396-market-data-clarification
Open

Clarify market data assumptions in swap pricing example#2789
seanxuu wants to merge 1 commit into
OpenGamma:mainfrom
seanxuu:issue-2396-market-data-clarification

Conversation

@seanxuu

@seanxuu seanxuu commented Aug 13, 2026

Copy link
Copy Markdown

Relates to #2396

The swap pricing example uses a multi-curve market-data setup: USD-Disc for discounting and USD-3ML for USD-LIBOR-3M projection. This is not equivalent to the flat 1% risk-free-rate setup used in the QuantLib comparison from #2396.

This change documents that assumption in the example so users compare aligned market data and conventions before treating different NPVs as a pricing defect.

For the current example, Strata reproduces the reported NPV of approximately 5,965,705.04.

Verification:

  • mvn -pl examples -Dtest=ExamplesTest#test_swapPricing_standalone test -q
  • mvn -pl examples -DskipTests verify -q
  • git diff --check

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.

1 participant