Class SalesQuoteUtility


  • public class SalesQuoteUtility
    extends java.lang.Object
    Utility methods for calculating rates for Sales quotes.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String createSwapAskMargin​(com.caplin.ret.trapi.fx.execution.LegQuote nearLegQuote, com.caplin.ret.trapi.fx.execution.LegQuote farLegQuote)  
      java.lang.String createSwapBidMargin​(com.caplin.ret.trapi.fx.execution.LegQuote nearLegQuote, com.caplin.ret.trapi.fx.execution.LegQuote farLegQuote)  
      java.lang.String createTraderAskAllInRate​(com.caplin.ret.trapi.fx.execution.Quote askQuote, boolean negateSpotMargin)  
      java.math.BigDecimal createTraderAskAllInRateBD​(com.caplin.ret.trapi.fx.execution.Quote quote, boolean negateSpotMargin)  
      java.lang.String createTraderAskPoints​(com.caplin.ret.trapi.fx.execution.Quote quote)  
      java.math.BigDecimal createTraderAskPointsBD​(com.caplin.ret.trapi.fx.execution.Quote quote)  
      java.lang.String createTraderAskRawPoints​(com.caplin.ret.trapi.fx.execution.Quote quote)  
      java.math.BigDecimal createTraderAskRawPointsBD​(com.caplin.ret.trapi.fx.execution.Quote quote)  
      java.lang.String createTraderAskSpotRate​(com.caplin.ret.trapi.fx.execution.Quote askQuote, boolean negateSpotMargin)  
      java.math.BigDecimal createTraderAskSpotRateBD​(com.caplin.ret.trapi.fx.execution.Quote quote, boolean negateSpotMargin)  
      java.lang.String createTraderBidAllInRate​(com.caplin.ret.trapi.fx.execution.Quote bidQuote, boolean negateSpotMargin)  
      java.math.BigDecimal createTraderBidAllInRateBD​(com.caplin.ret.trapi.fx.execution.Quote quote, boolean negateSpotMargin)  
      java.lang.String createTraderBidPoints​(com.caplin.ret.trapi.fx.execution.Quote quote)  
      java.math.BigDecimal createTraderBidPointsBD​(com.caplin.ret.trapi.fx.execution.Quote quote)  
      java.lang.String createTraderBidRawPoints​(com.caplin.ret.trapi.fx.execution.Quote quote)  
      java.math.BigDecimal createTraderBidRawPointsBD​(com.caplin.ret.trapi.fx.execution.Quote quote)  
      java.lang.String createTraderBidSpotRate​(com.caplin.ret.trapi.fx.execution.Quote bidQuote, boolean negateSpotMargin)  
      java.math.BigDecimal createTraderBidSpotRateBD​(com.caplin.ret.trapi.fx.execution.Quote quote, boolean negateSpotMargin)  
      com.caplin.ret.trapi.fx.execution.Quote getAskQuote​(com.caplin.motif.fx.trading.PricingSide pricingSide, com.caplin.ret.trapi.fx.execution.LegQuote legQuote)  
      com.caplin.ret.trapi.fx.execution.Quote getBidQuote​(com.caplin.motif.fx.trading.PricingSide pricingSide, com.caplin.ret.trapi.fx.execution.LegQuote legQuote)  
      • Methods inherited from class java.lang.Object

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

      • SalesQuoteUtility

        public SalesQuoteUtility()
    • Method Detail

      • createSwapBidMargin

        public java.lang.String createSwapBidMargin​(com.caplin.ret.trapi.fx.execution.LegQuote nearLegQuote,
                                                    com.caplin.ret.trapi.fx.execution.LegQuote farLegQuote)
      • createSwapAskMargin

        public java.lang.String createSwapAskMargin​(com.caplin.ret.trapi.fx.execution.LegQuote nearLegQuote,
                                                    com.caplin.ret.trapi.fx.execution.LegQuote farLegQuote)
      • createTraderBidSpotRate

        public java.lang.String createTraderBidSpotRate​(com.caplin.ret.trapi.fx.execution.Quote bidQuote,
                                                        boolean negateSpotMargin)
      • createTraderBidSpotRateBD

        public java.math.BigDecimal createTraderBidSpotRateBD​(com.caplin.ret.trapi.fx.execution.Quote quote,
                                                              boolean negateSpotMargin)
      • createTraderAskSpotRate

        public java.lang.String createTraderAskSpotRate​(com.caplin.ret.trapi.fx.execution.Quote askQuote,
                                                        boolean negateSpotMargin)
      • createTraderAskSpotRateBD

        public java.math.BigDecimal createTraderAskSpotRateBD​(com.caplin.ret.trapi.fx.execution.Quote quote,
                                                              boolean negateSpotMargin)
      • createTraderBidAllInRate

        public java.lang.String createTraderBidAllInRate​(com.caplin.ret.trapi.fx.execution.Quote bidQuote,
                                                         boolean negateSpotMargin)
      • createTraderBidAllInRateBD

        public java.math.BigDecimal createTraderBidAllInRateBD​(com.caplin.ret.trapi.fx.execution.Quote quote,
                                                               boolean negateSpotMargin)
      • createTraderAskAllInRate

        public java.lang.String createTraderAskAllInRate​(com.caplin.ret.trapi.fx.execution.Quote askQuote,
                                                         boolean negateSpotMargin)
      • createTraderAskAllInRateBD

        public java.math.BigDecimal createTraderAskAllInRateBD​(com.caplin.ret.trapi.fx.execution.Quote quote,
                                                               boolean negateSpotMargin)
      • createTraderBidPoints

        public java.lang.String createTraderBidPoints​(com.caplin.ret.trapi.fx.execution.Quote quote)
      • createTraderBidPointsBD

        public java.math.BigDecimal createTraderBidPointsBD​(com.caplin.ret.trapi.fx.execution.Quote quote)
      • createTraderBidRawPoints

        public java.lang.String createTraderBidRawPoints​(com.caplin.ret.trapi.fx.execution.Quote quote)
      • createTraderBidRawPointsBD

        public java.math.BigDecimal createTraderBidRawPointsBD​(com.caplin.ret.trapi.fx.execution.Quote quote)
      • createTraderAskPoints

        public java.lang.String createTraderAskPoints​(com.caplin.ret.trapi.fx.execution.Quote quote)
      • createTraderAskPointsBD

        public java.math.BigDecimal createTraderAskPointsBD​(com.caplin.ret.trapi.fx.execution.Quote quote)
      • createTraderAskRawPoints

        public java.lang.String createTraderAskRawPoints​(com.caplin.ret.trapi.fx.execution.Quote quote)
      • createTraderAskRawPointsBD

        public java.math.BigDecimal createTraderAskRawPointsBD​(com.caplin.ret.trapi.fx.execution.Quote quote)
      • getAskQuote

        public com.caplin.ret.trapi.fx.execution.Quote getAskQuote​(com.caplin.motif.fx.trading.PricingSide pricingSide,
                                                                   com.caplin.ret.trapi.fx.execution.LegQuote legQuote)
      • getBidQuote

        public com.caplin.ret.trapi.fx.execution.Quote getBidQuote​(com.caplin.motif.fx.trading.PricingSide pricingSide,
                                                                   com.caplin.ret.trapi.fx.execution.LegQuote legQuote)