Class BulkOrderActionTrade

java.lang.Object
com.caplin.motif.UserTrade
com.caplin.motif.fx.trading.orders.bulkaction.BulkOrderActionTrade

@Deprecated public class BulkOrderActionTrade extends UserTrade
Deprecated.

An instance of this object represents a request from the client to perform an action on a number of orders.

  • Constructor Details

    • BulkOrderActionTrade

      public BulkOrderActionTrade(com.caplin.trading.Trade trade, ScheduledExecutorService executorService, BulkOrderAction bulkOrderAction, Set<String> orderIDs)
      Deprecated.

      Constructs the BulkOrderActionTrade with a trade object from the underlying trading com.caplin.motif.datasource that contains the fields and the state model representing the clients request to perform bulk action on a set of orders.

      Note: As a user of the FXIntegrationAPI one is not expected to create this object, but to be passed these in listeners. See BulkOrderActionTradeListener

      Parameters:
      trade - The underlying trade from the trading com.caplin.motif.datasource library.
      orderIDs - A set of order ids on which the bulk order action BulkOrderAction will be performed.
      bulkOrderAction - The bulk action to perform on these orders.
  • Method Details

    • getBulkActionSentResponder

      public BulkOrderActionSentResponder getBulkActionSentResponder()
      Deprecated.
      Returns the responder that can trigger events from the BulkActionSent state.
      Returns:
      the responder that can trigger events from the BulkActionSent state.
    • getProcessingResponder

      public BulkOrderActionProcessingResponder getProcessingResponder()
      Deprecated.
      Returns the responder that can trigger events from the Processing state.
      Returns:
      the responder that can trigger events from the Processing state.
    • getBulkOrderAction

      public BulkOrderAction getBulkOrderAction()
      Deprecated.
      Returns:
      the BulkOrderAction for this trade
    • getOrderIDs

      public Set<String> getOrderIDs()
      Deprecated.
      The ids of the orders on which this action should be performed on.
      Returns:
      the id of the orders that this action will be performed on.
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Deprecated.
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class UserTrade