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

Add CDS pricing, functions and examples #346

Merged
merged 3 commits into from
Jun 24, 2015
Merged

Conversation

jodastephen
Copy link
Member

Credit derivatives

This is a breakout from #334. It includes market data objects, pricers and functions, plus recent changes for CDS index. The code was primarily written by @jacbop.

Structure

Function

The com.opengamma.strata.function.calculation.credit.AbstractCdsFunction class contains a pair of switch statements that contain the only differing behavior between single name and index. Once we retrieve the appropriate market data key from the trade we resolve to the IsdaYieldCurveParRates and IsdaCreditCurveParRates object needed to generate calibrated curves for the existing analytics. In the future this should be modified to use market data functions to properly calibrate the curves in the market data functions.

Market

Ids, Keys and ParRate curve objects for both ISDA Yield curves and ISDA Credit Spread curves. Support for single name and index according to the CDS Standard model.

Pricer

The com.opengamma.strata.pricer.credit.IsdaCdsHelper class wraps all interaction with the underlying analytics layer

The com.opengamma.strata.pricer.credit.IsdaCdsPricer class provides a PV function as well as functions for calculating parallel and bucketed IR01 and CS01 on par rates. Support for shifting on zero rates will be added in the future when the market data functions are added.

jacbop and others added 3 commits June 24, 2015 14:19
Pickup changes to enable CDS index trades
Change MultiCurrencyAmount to CurrencyAmount
Better docs and formatting
Rename to IsdaCdsPricer
Also rename helper class
@jodastephen jodastephen self-assigned this Jun 24, 2015
jodastephen added a commit that referenced this pull request Jun 24, 2015
Add CDS pricing, functions and examples

Connected to #173
@jodastephen jodastephen merged commit a3d5219 into master Jun 24, 2015
@jodastephen jodastephen deleted the topic/credit-functions branch June 24, 2015 13:26
@jonathansenior jonathansenior modified the milestone: v0.7.0 Jun 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants