Class UserTrade

    • Constructor Detail

      • UserTrade

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

        Constructor used by the generated code.

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

      • getUsername

        public 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 String getRequestID()
        Returns the ID generated from the client. The combination of user and trade is unique.
        Returns:
        the request ID.
      • getExecutorService

        public 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.