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

Manuel Carrera CDM Standard Schedule functions contribution back #3363

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

regnosys-prod-user
Copy link
Collaborator

No description provided.

This PR proposes the contribution back of several functions present in the Initial Margin model back to Core CDM
@regnosys-prod-user regnosys-prod-user requested a review from a team as a code owner January 31, 2025 14:52
@regnosys-prod-user regnosys-prod-user added the Rosetta This Pull Request can be viewed in Rosetta label Jan 31, 2025
Copy link

netlify bot commented Jan 31, 2025

Deploy Preview for finos-cdm ready!

Name Link
🔨 Latest commit 3583b50
🔍 Latest deploy log https://app.netlify.com/sites/finos-cdm/deploys/67a23b2f2547b900082a615a
😎 Deploy Preview https://deploy-preview-3363--finos-cdm.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@manucarreramoreno
Copy link
Contributor

Initial Margin Model - Functional externalization

Background

Following the latest contribution of the Standardized Schedule Method for calculating Initial Margin (IM) within the Common Domain Model (CDM), decision has been made to partially externalize its functionality (i.e. contributing back to Core CDM some of the functions due to its broader utility).

What is being released

Namespace changes

The following functions have been moved from the namespace cdm.margin.schedule:func to new namespaces:

  • UnderlierForProduct has been moved to cdm.product.template:func.
  • AdjustableOrAdjustedOrRelativeDateResolution, AdjustableDateResolution and AdjustableDatesResolution have been moved to cdm.base.datetime:func.
  • FXFarLeg has been moved to cdm.product.template:func.
  • DateDifferenceYears has been moved to cdm.base.datetime:func.
  • IsFXNonDeliverableOption has been renamed Qualify_ForeignExchange_NDO and has been moved to cdm.product.qualification:func.
  • Create_ExposureFromTrades has been moved to cdm.event.common:func.

Renamings

The following functions have been renamed, even though they remain in the original workspace cdm.margin.schedule:func:

  • IsIRSwapWithCallableBermudanRightToEnterExitSwaps has been renamed to Qualify_InterestRate_SwapWithCallableBermudanRightToEnterExitSwaps.
  • IsIRSwaptionStraddle has been renamed to Qualify_InterestRate_Swaption_Straddle.
  • IsCreditNthToDefault has been renamed to Qualify_Credit_NthToDefault.

Function modifications

Also, the function Qualify_ForeignExchange_VanillaOption has been slightly modified in order to admit only physically delivered options (as the function for NDO has been created).

Backward Incompatible

The following changes are backward incompatible:

  • All the function renamings specified in the Renamings section and the modification specified in the Function modifications section.

@lolabeis lolabeis linked an issue Feb 13, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Modelling Complexity: Minor Change Requires two TA approval Rosetta This Pull Request can be viewed in Rosetta
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Contribution of Standardized Schedule functions to Core CDM
3 participants