Commit 850470f7 authored by Mohammed Ibrahim's avatar Mohammed Ibrahim

syncing with workspace from studio [potentially affected 663 entities] [2 / 2]

parent a563131d
......@@ -77,44 +77,6 @@
},
"sourceView" : "315c54a9-b23b-460d-b0a9-99485fbcfe0a",
"targetView" : "09735b17-26fd-4cdc-8ad9-4e0f38667cee"
}, {
"line" : {
"points" : [ {
"x" : 669.3906288146973,
"y" : 195.7882080078125
}, {
"x" : 667,
"y" : 426
}, {
"x" : 432.44702529907227,
"y" : 427.6528015136719
} ]
},
"property" : {
"class" : "cdm::model::OptionStrike",
"property" : "averagingStrikeFeature"
},
"sourceView" : "cbe90df4-84e5-482d-9056-549b13c8922b",
"targetView" : "315c54a9-b23b-460d-b0a9-99485fbcfe0a"
}, {
"line" : {
"points" : [ {
"x" : 213,
"y" : 241
}, {
"x" : 213,
"y" : 425
}, {
"x" : 432.44702529907227,
"y" : 427.6528015136719
} ]
},
"property" : {
"class" : "cdm::model::OptionFeature",
"property" : "averagingRateFeature"
},
"sourceView" : "088ff0c5-81ef-44ff-aa49-7f41c60364d7",
"targetView" : "315c54a9-b23b-460d-b0a9-99485fbcfe0a"
}, {
"line" : {
"points" : [ {
......
This diff is collapsed.
......@@ -841,22 +841,6 @@
},
"sourceView" : "a4a5b184-f139-4d56-b5c2-fee798bbffd7",
"targetView" : "5f44c922-fa31-4e5f-8017-13ff3bbe7dd6"
}, {
"line" : {
"points" : [ {
"x" : 1356.2586383367793,
"y" : 253.95752514771084
}, {
"x" : 1575.375049438186,
"y" : 255.13198294143874
} ]
},
"property" : {
"class" : "cdm::model::OptionFeature",
"property" : "averagingRateFeature"
},
"sourceView" : "a4a5b184-f139-4d56-b5c2-fee798bbffd7",
"targetView" : "7643c9ec-eb7a-4a56-bafe-f50d2f8469a9"
}, {
"line" : {
"points" : [ {
......
{
"classifierPath" : "meta::pure::metamodel::function::ConcreteFunctionDefinition",
"content" : {
"_type" : "function",
"body" : [ {
"_type" : "func",
"function" : "toOne",
"parameters" : [ {
"_type" : "func",
"function" : "filter",
"parameters" : [ {
"_type" : "var",
"name" : "quantities"
}, {
"_type" : "lambda",
"body" : [ {
"_type" : "func",
"function" : "equal",
"parameters" : [ {
"_type" : "property",
"parameters" : [ {
"_type" : "var",
"name" : "q"
} ],
"property" : "assetIdentifier"
}, {
"_type" : "var",
"name" : "asset"
} ]
} ],
"parameters" : [ {
"_type" : "var",
"name" : "q"
} ]
} ]
} ]
} ],
"name" : "ExtractQuantityByAsset",
"package" : "cdm::functions",
"parameters" : [ {
"_type" : "var",
"class" : "cdm::model::QuantityNotation",
"multiplicity" : {
"lowerBound" : 1
},
"name" : "quantities"
}, {
"_type" : "var",
"class" : "cdm::model::AssetIdentifier",
"multiplicity" : {
"lowerBound" : 1,
"upperBound" : 1
},
"name" : "asset"
} ],
"returnMultiplicity" : {
"lowerBound" : 1,
"upperBound" : 1
},
"returnType" : "cdm::model::QuantityNotation"
}
}
\ No newline at end of file
{
"classifierPath" : "meta::pure::metamodel::function::ConcreteFunctionDefinition",
"content" : {
"_type" : "function",
"body" : [ {
"_type" : "func",
"function" : "toOne",
"parameters" : [ {
"_type" : "func",
"function" : "filter",
"parameters" : [ {
"_type" : "var",
"name" : "quantities"
}, {
"_type" : "lambda",
"body" : [ {
"_type" : "func",
"function" : "equal",
"parameters" : [ {
"_type" : "property",
"parameters" : [ {
"_type" : "property",
"parameters" : [ {
"_type" : "var",
"name" : "q"
} ],
"property" : "assetIdentifier"
} ],
"property" : "currency"
}, {
"_type" : "var",
"name" : "currency"
} ]
} ],
"parameters" : [ {
"_type" : "var",
"name" : "q"
} ]
} ]
} ]
} ],
"name" : "ExtractQuantityByCurrency",
"package" : "cdm::functions",
"parameters" : [ {
"_type" : "var",
"class" : "cdm::model::QuantityNotation",
"multiplicity" : {
"lowerBound" : 1
},
"name" : "quantities"
}, {
"_type" : "var",
"class" : "String",
"multiplicity" : {
"lowerBound" : 1,
"upperBound" : 1
},
"name" : "currency"
} ],
"returnMultiplicity" : {
"lowerBound" : 1,
"upperBound" : 1
},
"returnType" : "cdm::model::QuantityNotation"
}
}
\ No newline at end of file
{
"classifierPath" : "meta::pure::metamodel::function::ConcreteFunctionDefinition",
"content" : {
"_type" : "function",
"body" : [ {
"_type" : "func",
"function" : "letFunction",
"parameters" : [ {
"_type" : "string",
"multiplicity" : {
"lowerBound" : 1,
"upperBound" : 1
},
"values" : [ "calculationAmount" ]
}, {
"_type" : "property",
"parameters" : [ {
"_type" : "var",
"name" : "quantity"
} ],
"property" : "amount"
} ]
}, {
"_type" : "func",
"function" : "letFunction",
"parameters" : [ {
"_type" : "string",
"multiplicity" : {
"lowerBound" : 1,
"upperBound" : 1
},
"values" : [ "fixedRateAmount" ]
}, {
"_type" : "property",
"parameters" : [ {
"_type" : "var",
"name" : "fixedRate"
} ],
"property" : "rate"
} ]
}, {
"_type" : "func",
"function" : "letFunction",
"parameters" : [ {
"_type" : "string",
"multiplicity" : {
"lowerBound" : 1,
"upperBound" : 1
},
"values" : [ "dayCountFraction" ]
}, {
"_type" : "func",
"function" : "cdm::functions::DayCountFraction",
"parameters" : [ {
"_type" : "var",
"name" : "interestRatePayout"
}, {
"_type" : "func",
"function" : "toOne",
"parameters" : [ {
"_type" : "property",
"parameters" : [ {
"_type" : "var",
"name" : "interestRatePayout"
} ],
"property" : "dayCountFraction"
} ]
}, {
"_type" : "var",
"name" : "date"
} ]
} ]
}, {
"_type" : "func",
"function" : "letFunction",
"parameters" : [ {
"_type" : "string",
"multiplicity" : {
"lowerBound" : 1,
"upperBound" : 1
},
"values" : [ "fixedAmount" ]
}, {
"_type" : "func",
"function" : "times",
"parameters" : [ {
"_type" : "collection",
"multiplicity" : {
"lowerBound" : 3,
"upperBound" : 3
},
"values" : [ {
"_type" : "var",
"name" : "calculationAmount"
}, {
"_type" : "var",
"name" : "fixedRateAmount"
}, {
"_type" : "var",
"name" : "dayCountFraction"
} ]
} ]
} ]
}, {
"_type" : "var",
"name" : "fixedAmount"
} ],
"name" : "FixedAmount",
"package" : "cdm::functions",
"parameters" : [ {
"_type" : "var",
"class" : "cdm::model::InterestRatePayout",
"multiplicity" : {
"lowerBound" : 1,
"upperBound" : 1
},
"name" : "interestRatePayout"
}, {
"_type" : "var",
"class" : "cdm::model::FixedInterestRate",
"multiplicity" : {
"lowerBound" : 1,
"upperBound" : 1
},
"name" : "fixedRate"
}, {
"_type" : "var",
"class" : "cdm::model::NonNegativeQuantity",
"multiplicity" : {
"lowerBound" : 1,
"upperBound" : 1
},
"name" : "quantity"
}, {
"_type" : "var",
"class" : "Date",
"multiplicity" : {
"lowerBound" : 1,
"upperBound" : 1
},
"name" : "date"
} ],
"returnMultiplicity" : {
"lowerBound" : 1,
"upperBound" : 1
},
"returnType" : "Number",
"taggedValues" : [ {
"tag" : {
"profile" : "meta::pure::profiles::doc",
"value" : "doc"
},
"value" : "2006 ISDA Definition Article 5 Section 5.1. Calculation of a Fixed Amount: The Fixed Amount payable by a party on a Payment Date will be: (a) if an amount is specified for the Swap Transaction as the Fixed Amount payable by that party for that Payment Date or for the related Calculation Period, that amount; or (b) if an amount is not specified for the Swap Transaction as the Fixed Amount payable by that party for that Payment Date or for the related Calculation Period, an amount calculated on a formula basis for that Payment Date or for the related Calculation Period as follows: Fixed Amount = Calculation Amount × Fixed Rate × Day Count Fraction."
} ]
}
}
\ No newline at end of file
{
"classifierPath" : "meta::pure::metamodel::function::ConcreteFunctionDefinition",
"content" : {
"_type" : "function",
"body" : [ {
"_type" : "func",
"function" : "letFunction",
"parameters" : [ {
"_type" : "string",
"multiplicity" : {
"lowerBound" : 1,
"upperBound" : 1
},
"values" : [ "calculationAmount" ]
}, {
"_type" : "property",
"parameters" : [ {
"_type" : "var",
"name" : "quantity"
} ],
"property" : "amount"
} ]
}, {
"_type" : "func",
"function" : "letFunction",
"parameters" : [ {
"_type" : "string",
"multiplicity" : {
"lowerBound" : 1,
"upperBound" : 1
},
"values" : [ "floatingRate" ]
}, {
"_type" : "func",
"function" : "cdm::functions::native::ResolveRateIndex",
"parameters" : [ {
"_type" : "func",
"function" : "toOne",
"parameters" : [ {
"_type" : "property",
"parameters" : [ {
"_type" : "property",
"parameters" : [ {
"_type" : "property",
"parameters" : [ {
"_type" : "property",
"parameters" : [ {
"_type" : "property",
"parameters" : [ {
"_type" : "var",
"name" : "interestRatePayout"
} ],
"property" : "rateSpecification"
} ],
"property" : "floatingRate"
} ],
"property" : "assetIdentifier"
} ],
"property" : "rateOption"
} ],
"property" : "floatingRateIndex"
} ]
} ]
} ]
}, {
"_type" : "func",
"function" : "letFunction",
"parameters" : [ {
"_type" : "string",
"multiplicity" : {
"lowerBound" : 1,
"upperBound" : 1
},
"values" : [ "spreadRate" ]
}, {
"_type" : "property",
"parameters" : [ {
"_type" : "var",
"name" : "rate"
} ],
"property" : "spread"
} ]
}, {
"_type" : "func",
"function" : "letFunction",
"parameters" : [ {
"_type" : "string",
"multiplicity" : {
"lowerBound" : 1,
"upperBound" : 1
},
"values" : [ "dayCountFraction" ]
}, {
"_type" : "func",
"function" : "cdm::functions::DayCountFraction",
"parameters" : [ {
"_type" : "var",
"name" : "interestRatePayout"
}, {
"_type" : "func",
"function" : "toOne",
"parameters" : [ {
"_type" : "property",
"parameters" : [ {
"_type" : "var",
"name" : "interestRatePayout"
} ],
"property" : "dayCountFraction"
} ]
}, {
"_type" : "var",
"name" : "date"
} ]
} ]
}, {
"_type" : "func",
"function" : "letFunction",
"parameters" : [ {
"_type" : "string",
"multiplicity" : {
"lowerBound" : 1,
"upperBound" : 1
},
"values" : [ "floatingAmount" ]
}, {
"_type" : "func",
"function" : "times",
"parameters" : [ {
"_type" : "collection",
"multiplicity" : {
"lowerBound" : 3,
"upperBound" : 3
},
"values" : [ {
"_type" : "var",
"name" : "calculationAmount"
}, {
"_type" : "func",
"function" : "plus",
"parameters" : [ {
"_type" : "collection",
"multiplicity" : {
"lowerBound" : 2,
"upperBound" : 2
},
"values" : [ {
"_type" : "var",
"name" : "floatingRate"
}, {
"_type" : "func",
"function" : "toOne",
"parameters" : [ {
"_type" : "var",
"name" : "spreadRate"
} ]
} ]
} ]
}, {
"_type" : "var",
"name" : "dayCountFraction"
} ]
} ]
} ]
}, {
"_type" : "var",
"name" : "floatingAmount"
} ],
"name" : "FloatingAmount",
"package" : "cdm::functions",
"parameters" : [ {
"_type" : "var",
"class" : "cdm::model::InterestRatePayout",
"multiplicity" : {
"lowerBound" : 1,
"upperBound" : 1
},
"name" : "interestRatePayout"
}, {
"_type" : "var",
"class" : "cdm::model::FloatingInterestRate",
"multiplicity" : {
"lowerBound" : 1,
"upperBound" : 1
},
"name" : "rate"
}, {
"_type" : "var",
"class" : "cdm::model::NonNegativeQuantity",
"multiplicity" : {
"lowerBound" : 1,
"upperBound" : 1
},
"name" : "quantity"
}, {
"_type" : "var",
"class" : "Date",
"multiplicity" : {
"lowerBound" : 1,
"upperBound" : 1
},
"name" : "date"
} ],
"returnMultiplicity" : {
"lowerBound" : 1,
"upperBound" : 1
},
"returnType" : "Float",
"taggedValues" : [ {
"tag" : {
"profile" : "meta::pure::profiles::doc",
"value" : "doc"
},
"value" : "2006 ISDA Definition Article 6 Section 6.1. Calculation of a Floating Amount: Subject to the provisions of Section 6.4 (Negative Interest Rates), the Floating Amount payable by a party on a Payment Date will be: (a) if Compounding is not specified for the Swap Transaction or that party, an amount calculated on a formula basis for that Payment Date or for the related Calculation Period as follows: Floating Amount = Calculation Amount × Floating Rate + Spread × Floating Rate Day Count Fraction (b) if “Compounding” is specified to be applicable to the Swap Transaction or that party and 'Flat Compounding' is not specified, an amount equal to the sum of the Compounding Period Amounts for each of the Compounding Periods in the related Calculation Period; or (c) if 'Flat Compounding' is specified to be applicable to the Swap Transaction or that party, an amount equal to the sum of the Basic Compounding Period Amounts for each of the Compounding Periods in the related Calculation Period plus the sum of the Additional Compounding Period Amounts for each such Compounding Period."
} ]
}
}
\ No newline at end of file
......@@ -11,55 +11,34 @@
"lowerBound" : 1,
"upperBound" : 1
},
"values" : [ "initialPrice" ]
"values" : [ "result" ]
}, {
"_type" : "func",
"function" : "new",
"parameters" : [ {
"_type" : "class",
"fullPath" : "cdm::model::CashPrice"
}, {
"_type" : "string",
"multiplicity" : {
"lowerBound" : 1,
"upperBound" : 1
},
"values" : [ ]
}, {
"_type" : "collection",
"multiplicity" : {
"lowerBound" : 1,
"upperBound" : 1
},
"values" : [ ]
} ]
"_type" : "float",
"multiplicity" : {
"lowerBound" : 1,
"upperBound" : 1
},
"values" : [ 1 ]
} ]
}, {
"_type" : "var",
"name" : "initialPrice"
"name" : "result"
} ],
"name" : "ResolveEquityInitialPrice",
"package" : "cdm::model",
"name" : "InterpolateForwardRate",
"package" : "cdm::functions",
"parameters" : [ {
"_type" : "var",
"class" : "cdm::model::Underlier",
"class" : "cdm::model::ForwardPayout",
"multiplicity" : {
"lowerBound" : 1,
"upperBound" : 1
},
"name" : "underlier"
}, {
"_type" : "var",
"class" : "cdm::model::PriceNotation",