Class OkCoinExchange

java.lang.Object
org.knowm.xchange.BaseExchange
org.knowm.xchange.okcoin.OkCoinExchange
All Implemented Interfaces:
Exchange
Direct Known Subclasses:
OkCoinStreamingExchange

public class OkCoinExchange extends BaseExchange
  • Constructor Details

    • OkCoinExchange

      public OkCoinExchange()
  • Method Details

    • futuresContractOfConfig

      public static FuturesContract futuresContractOfConfig(ExchangeSpecification exchangeSpecification)
      Extract contract used by spec
    • applySpecification

      public void applySpecification(ExchangeSpecification exchangeSpecification)
      Description copied from interface: Exchange
      Applies any exchange specific parameters
      Specified by:
      applySpecification in interface Exchange
      Overrides:
      applySpecification in class BaseExchange
      Parameters:
      exchangeSpecification - The ExchangeSpecification
    • initServices

      protected void initServices()
      Specified by:
      initServices in class BaseExchange
    • getDefaultExchangeSpecification

      public ExchangeSpecification getDefaultExchangeSpecification()
      Returns:
      A default ExchangeSpecification to use during the creation process if one is not supplied
    • getNonceFactory

      public si.mazi.rescu.SynchronizedValueFactory<Long> getNonceFactory()
      Description copied from interface: Exchange
      The nonce factory used to create a nonce value. Allows services to accept a placeholder that is replaced with generated value just before message is serialized and sent. If a method of a rest accepts ValueFactory as a parameter, it's evaluated, the message is serialized and sent in a single synchronized block.
      Specified by:
      getNonceFactory in interface Exchange
      Overrides:
      getNonceFactory in class BaseExchange
      Returns:
      Synchronized value factory
    • getMetaDataFileName

      public String getMetaDataFileName(ExchangeSpecification exchangeSpecification)
      Overrides:
      getMetaDataFileName in class BaseExchange