Enum BTCTradeSessionFactory

java.lang.Object
java.lang.Enum<BTCTradeSessionFactory>
org.knowm.xchange.btctrade.service.BTCTradeSessionFactory
All Implemented Interfaces:
Serializable, Comparable<BTCTradeSessionFactory>, java.lang.constant.Constable

public enum BTCTradeSessionFactory
extends Enum<BTCTradeSessionFactory>
BTCTradeSession factory to ensure the service instances, which using the same API key, share the same secret data and nonce.
  • Enum Constant Details

  • Method Details

    • values

      public static BTCTradeSessionFactory[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static BTCTradeSessionFactory valueOf​(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getSession

      public BTCTradeSession getSession​(Exchange exchange)
      Parameters:
      exchange -
      Returns: