Class SubmitTradeEvent

    • Constructor Detail

      • SubmitTradeEvent

        public SubmitTradeEvent​(com.caplin.trading.TradeEvent tradeEvent)
    • Method Detail

      • getFields

        public java.util.Map<java.lang.String,​java.lang.String> getFields()
        Gets the fields of this TradeEvent as a Map
        Specified by:
        getFields in interface Message
        Returns:
        a map of the fields;
      • getQuoteID

        public java.lang.String getQuoteID()
        Returns:
        The unique ID of the quote the client wants to trade on. This is generated by the OMS. For SPOT trades it will be the Quote ID for the SPOT quote, for Forward trades it will be the Quote ID of the forward points quote.
      • getSpotRate

        public java.lang.String getSpotRate()
        Returns:
        This is the spot rate that the client wants to trade on. The value of this field must equal the value of either the SpotBidRate or SpotAskRate field on the rate update that the client is executing. Example value: 1.08575
      • getOneClickActionType

        public java.lang.String getOneClickActionType()
        Returns:
        This field is used to tell the server if and how to apply slippage. The possible values are: FillAtMarket, FillAtMyRate or AllowFillSlippage.
      • getSlippageAmount

        public java.lang.String getSlippageAmount()
        Returns:
        The amount of slippage permitted.
      • getBackingEvent

        public com.caplin.trading.TradeEvent getBackingEvent()
        Returns:
        Get the TradeEvent backing this event
      • isSales

        public boolean isSales()
      • getBaseCurrency

        public java.lang.String getBaseCurrency()
      • getTermCurrency

        public java.lang.String getTermCurrency()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object