Class PrecisionFactory

java.lang.Object
com.caplin.motif.fx.ret.fxtrading.quote.PrecisionFactory

public class PrecisionFactory extends Object
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    getDigitsBeforePips(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(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(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
    getNumberOfPips(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 Details

    • PrecisionFactory

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

    • getDigitsBeforePips

      public String getDigitsBeforePips(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 String getNumberOfPips(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 String getNumberOfFractionalPips(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 String getNumberOfFractionalPoints(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