Class PrecisionFactory
- java.lang.Object
-
- com.caplin.motif.fx.ret.fxtrading.quote.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 ratejava.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 ratejava.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 otherwisejava.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
-
-
-
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
-
-