Class ASensiBookSubstitutionRestService<T extends SignOffSensiBookSubstitutionDTO>

    • Field Detail

      • datastore

        protected com.qfs.store.IDatastore datastore
      • sensiStore

        protected String sensiStore
    • Constructor Detail

      • ASensiBookSubstitutionRestService

        public ASensiBookSubstitutionRestService​(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 - type of the sensitivuty
        Returns:
        ICondition
      • getPreviousDayVectors

        public Map<String,​Object> getPreviousDayVectors​(SensiVectorSubstitutionDTO 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
      • getPreviousAsOfDates

        public javax.ws.rs.core.Response getPreviousAsOfDates​(String tradeId,
                                                              String asOfDate,
                                                              String riskFactor)
        RESTFul call to retrieve the previous as of dates for a given set of criteria
        Parameters:
        tradeId - the tradeId
        asOfDate - the asOfDate
        riskFactor - the riskFactor
        Returns:
        Response
      • 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