Class ChangeActiveState


  • @Deprecated
    public class ChangeActiveState
    extends UserTrade
    Deprecated.

    An instance of this object represents a request from the client to change the state of an existing order.

    • Constructor Detail

      • ChangeActiveState

        public ChangeActiveState​(com.caplin.trading.Trade trade,
                                 java.util.concurrent.ScheduledExecutorService executorService,
                                 java.lang.String parentOrderID,
                                 java.lang.String orderID,
                                 ActiveState newState)
        Deprecated.

        Constructs the ChangeActiveState 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 change the state of an already existing order.

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

        Parameters:
        trade - The underlying trade from the trading com.caplin.motif.datasource library.
        parentOrderID - The ID of the parent order if the order to be changed is part of a multi-leg order.
        orderID - The ID of the order that client wants to change the state of.
        newState - The new state that the client wants to change the order to.
    • Method Detail

      • getChangeStateSentResponder

        public OrderChangeStateSentResponder getChangeStateSentResponder()
        Deprecated.
        Returns the responder that can trigger events from the ChangeStateSent state.
        Returns:
        the responder that can trigger events from the ChangeStateSent state.
      • getChangingStateResponder

        public OrderChangingStateResponder getChangingStateResponder()
        Deprecated.
        Returns the responder that can trigger events from the ChangingState state.
        Returns:
        the responder that can trigger events from the ChangingState state.
      • getParentOrderID

        public java.lang.String getParentOrderID()
        Deprecated.
        ParentOrderID is optional and might be not defined
        Returns:
        parentOrderId or null (if parentOrderId is not defined)
      • getOrderID

        public java.lang.String getOrderID()
        Deprecated.
        The id of the order that client wants to change the state of
        Returns:
        the id of the order that the client wants to change the state of
      • getNewState

        public ActiveState getNewState()
        Deprecated.
        Returns an instance of ActiveState which represents the new state that the client wants the order to change to.
        Returns:
        the new state that the order should change to.
      • hashCode

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

        public boolean equals​(java.lang.Object obj)
        Deprecated.
        Overrides:
        equals in class java.lang.Object