UnitType
Type CDM 7.2.0Defines the unit to be used for price, quantity, or other purposes
Attributes
All 4 declared on UnitType. Cardinality in amber is required.
| Name | Type | Card. | Description |
|---|---|---|---|
| capacityUnit | CapacityUnitEnum | 0..1 | Provides an enumerated value for a capacity unit, generally used in the context of defining quantities for commodities. |
| weatherUnit | WeatherUnitEnum | 0..1 | Provides an enumerated values for a weather unit, generally used in the context of defining quantities for commodities. |
| financialUnit | FinancialUnitEnum | 0..1 | Provides an enumerated value for financial units, generally used in the context of defining quantities for securities. |
| currency | string | 0..1 | Defines the currency to be used as a unit for a price, quantity, or other purpose. |
Conditions
Validation rules the model enforces on this type, in Rune. An instance that breaks one of these is invalid CDM, whatever produced it.
one-of Referenced by
2 types hold an UnitType as an attribute.
Functions
Model functions that produce or consume this type. These are the CDM's own behaviour — the logic a correct implementation has to match.
| Function | Role | Description |
|---|---|---|
| GetMultiplierUnitTypeUnderlyingAsset | returns | — |
| GetUnitTypeForUnderlyingAsset | returns | — |
| MapUnitTypeWithScheme | returns | — |
| CompareQuantityByUnitOfAmount | takes | — |
| UnitEquals | takes | Compares two UnitType to check if all attributes match. |
| FilterQuantity | takes | Filter list of quantities based on unit type. |
| MapOptionStrikePrice | takes | — |
Open UnitType in the Model Browser
Walk the tree and the reference graph interactively, and switch releases to see how the type has changed. Free, no signup.