Class PrecisionFactory
java.lang.Object
com.caplin.motif.fx.ret.fxtrading.quote.PrecisionFactory
-
Constructor Summary
ConstructorDescriptionPrecisionFactory
(com.caplin.ret.trapi.admin.AdminService adminService, InstrumentProvider instrumentProvider) -
Method Summary
Modifier and TypeMethodDescriptiongetDigitsBeforePips
(String username, com.caplin.ret.trapi.fx.execution.LegQuote legQuote, com.caplin.ret.trapi.fx.execution.QuoteEvent quote) Get the RatePrecision from the Spot rategetNumberOfFractionalPips
(String username, com.caplin.ret.trapi.fx.execution.LegQuote legQuote, com.caplin.ret.trapi.fx.execution.QuoteEvent quote) Get the RatePrecision from the Spot rategetNumberOfFractionalPoints
(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 otherwisegetNumberOfPips
(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 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
-