Class PrecisionFactory


  • public class PrecisionFactory
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      PrecisionFactory​(com.caplin.ret.trapi.admin.AdminService adminService, InstrumentProvider instrumentProvider)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getDigitsBeforePips​(java.lang.String username, com.caplin.ret.trapi.fx.execution.LegQuote legQuote, com.caplin.ret.trapi.fx.execution.QuoteEvent quote)
      Get the RatePrecision from the Spot rate
      java.lang.String getNumberOfFractionalPips​(java.lang.String username, com.caplin.ret.trapi.fx.execution.LegQuote legQuote, com.caplin.ret.trapi.fx.execution.QuoteEvent quote)
      Get the RatePrecision from the Spot rate
      java.lang.String getNumberOfFractionalPoints​(java.lang.String username, com.caplin.ret.trapi.fx.execution.LegQuote legQuote, com.caplin.ret.trapi.fx.execution.QuoteEvent quote)
      Get the fractional points from the Spot rate if Tenor is SPOT or allInRate otherwise
      java.lang.String getNumberOfPips​(java.lang.String username, com.caplin.ret.trapi.fx.execution.LegQuote legQuote, com.caplin.ret.trapi.fx.execution.QuoteEvent quote)
      Get the RatePrecision from the Spot rate
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PrecisionFactory

        public PrecisionFactory​(com.caplin.ret.trapi.admin.AdminService adminService,
                                InstrumentProvider instrumentProvider)
    • Method Detail

      • getDigitsBeforePips

        public java.lang.String getDigitsBeforePips​(java.lang.String username,
                                                    com.caplin.ret.trapi.fx.execution.LegQuote legQuote,
                                                    com.caplin.ret.trapi.fx.execution.QuoteEvent quote)
        Get the RatePrecision from the Spot rate
      • getNumberOfPips

        public java.lang.String getNumberOfPips​(java.lang.String username,
                                                com.caplin.ret.trapi.fx.execution.LegQuote legQuote,
                                                com.caplin.ret.trapi.fx.execution.QuoteEvent quote)
        Get the RatePrecision from the Spot rate
      • getNumberOfFractionalPips

        public java.lang.String getNumberOfFractionalPips​(java.lang.String username,
                                                          com.caplin.ret.trapi.fx.execution.LegQuote legQuote,
                                                          com.caplin.ret.trapi.fx.execution.QuoteEvent quote)
        Get the RatePrecision from the Spot rate
      • getNumberOfFractionalPoints

        public java.lang.String getNumberOfFractionalPoints​(java.lang.String username,
                                                            com.caplin.ret.trapi.fx.execution.LegQuote legQuote,
                                                            com.caplin.ret.trapi.fx.execution.QuoteEvent quote)
        Get the fractional points from the Spot rate if Tenor is SPOT or allInRate otherwise