Class APnLBookSubstitutionRestService<T extends SignOffPnLBookSubstitutionDTO>

    • Field Detail

      • datastore

        protected com.qfs.store.IDatastore datastore
    • Constructor Detail

      • APnLBookSubstitutionRestService

        public APnLBookSubstitutionRestService​(com.qfs.store.IDatastore datastore)
    • Method Detail

      • generateTradeCondition

        public com.qfs.condition.ICondition generateTradeCondition​(PnLVectorSubstitutionDTO dto)
        Generate the ICondition used to retrieve the data corresponding to the book to scale
        Parameters:
        dto - the DTO
        Returns:
        ICondition
      • getPreviousDayVectors

        public Map<String,​com.qfs.vector.IVector> getPreviousDayVectors​(PnLVectorSubstitutionDTO dto)
        Retrieve the PnL 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 Set<String> getPreviousAsOfDates​(com.qfs.condition.ICondition condition)
        Retrieve the set of previous as of dates for a given ICondition
        Parameters:
        condition - the ICondition
        Returns:
        the set of as of dates
      • 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