Class UserTrade

    • Constructor Summary

      Constructors 
      Constructor Description
      UserTrade​(com.caplin.trading.Trade backingTrade, java.util.concurrent.ScheduledExecutorService executorService)
      Constructor used by the generated code.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.caplin.trading.Trade getBackingTrade()
      Returns the trade created by the logged in user.
      java.util.concurrent.ScheduledExecutorService getExecutorService()
      Returns the FXIntegrationAPI's executor service for this trade.
      java.lang.String getRequestID()
      Returns the ID generated from the client.
      java.lang.String getUsername()
      Returns the username of the logged in user that created this trade.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • UserTrade

        public UserTrade​(com.caplin.trading.Trade backingTrade,
                         java.util.concurrent.ScheduledExecutorService executorService)

        Constructor used by the generated code.

        Parameters:
        backingTrade - - A single Trade active in the system
        executorService - - Sets executorService
    • Method Detail

      • getUsername

        public java.lang.String getUsername()
        Returns the username of the logged in user that created this trade.
        Returns:
        the username of the logged in user.
      • getBackingTrade

        public com.caplin.trading.Trade getBackingTrade()
        Returns the trade created by the logged in user.
        Returns:
        the trade created by the logged in user.
      • getRequestID

        public java.lang.String getRequestID()
        Returns the ID generated from the client. The combination of user and trade is unique.
        Returns:
        the request ID.
      • getExecutorService

        public java.util.concurrent.ScheduledExecutorService getExecutorService()
        Returns the FXIntegrationAPI's executor service for this trade. Client callbacks are already processed on this thread, and you may single thread your back end system callbacks on here to aid in processing events sequentially.
        Returns:
        The FXIntegrationAPI's executor service for this trade.
      • toString

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