All Downloads are FREE. Search and download functionalities are using the official Maven repository.

src.cdm.observable.asset.fro.functions.IndexValueObservationMultiple.py Maven / Gradle / Ivy

# pylint: disable=line-too-long, invalid-name, missing-function-docstring, missing-module-docstring, superfluous-parens
# pylint: disable=wrong-import-position, unused-import, unused-wildcard-import, wildcard-import, wrong-import-order, missing-class-docstring
from __future__ import annotations
import sys
import datetime
import inspect
from decimal import Decimal
from rosetta.runtime.utils import *
from rosetta.runtime.func_proxy import replaceable, create_module_attr_guardian
from cdm.observable.asset.FloatingRateIndex import FloatingRateIndex
from cdm.observable.asset.fro.functions.IndexValueObservation import IndexValueObservation

__all__ = ['IndexValueObservationMultiple']


@replaceable
def IndexValueObservationMultiple(observationDate: list[datetime.date] | None, floatingRateOption: FloatingRateIndex) -> Decimal:
    """
    Retrieve the values of the supplied index on the specified observation dates.
    
    Parameters 
    ----------
    observationDate : date
    
    floatingRateOption : FloatingRateIndex
    
    Returns
    -------
    observedValues : number
    
    """
    self = inspect.currentframe()
    
    
    observedValues = map(lambda item: IndexValueObservation(item, rosetta_resolve_attr(self, "floatingRateOption")), rosetta_resolve_attr(self, "observationDate"))
    
    
    return observedValues

sys.modules[__name__].__class__ = create_module_attr_guardian(sys.modules[__name__].__class__)




© 2015 - 2025 Weber Informatics LLC | Privacy Policy