Class ASensiVectorSubstitutionRestService<T extends SensiVectorSubstitutionDTO>

    • Field Detail

      • datastore

        protected com.qfs.store.IDatastore datastore
      • sensiStore

        protected String sensiStore
    • Constructor Detail

      • ASensiVectorSubstitutionRestService

        public ASensiVectorSubstitutionRestService​(com.qfs.store.IDatastore datastore,
                                                   String sensiStore)
    • Method Detail

      • generateSensiCondition

        public com.qfs.condition.ICondition generateSensiCondition​(SensiVectorSubstitutionDTO dto,
                                                                   String regexp)
        Generate the ICondition used to retrieve the data corresponding to the sensitivities to substitute
        Parameters:
        dto - the DTO
        regexp - sensitivity type in regular expression
        Returns:
        ICondition
      • getPreviousDayVectors

        public Map<String,​Object> getPreviousDayVectors​(T dto)
        Retrieve the sensitivities vectors for previous day
        Parameters:
        dto - the DTO
        Returns:
        A map with the risk factor as key and the PnL vector as value
      • parseAsOfDate

        public LocalDate parseAsOfDate​(String asOfDate)
        Parse the as of date string representation into a LocalDate
        Parameters:
        asOfDate - string representation of the as of date
        Returns:
        LocalDate