Package org.knowm.xchange.okcoin
Class OkCoinExchange
java.lang.Object
org.knowm.xchange.BaseExchange
org.knowm.xchange.okcoin.OkCoinExchange
- All Implemented Interfaces:
Exchange
- Direct Known Subclasses:
OkCoinStreamingExchange
-
Field Summary
Fields inherited from class org.knowm.xchange.BaseExchange
accountService, exchangeMetaData, exchangeSpecification, logger, marketDataService, tradeServiceFields inherited from interface org.knowm.xchange.Exchange
USE_SANDBOX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplySpecification(ExchangeSpecification exchangeSpecification) Applies any exchange specific parametersstatic FuturesContractfuturesContractOfConfig(ExchangeSpecification exchangeSpecification) Extract contract used by specgetMetaDataFileName(ExchangeSpecification exchangeSpecification) si.mazi.rescu.SynchronizedValueFactory<Long>The nonce factory used to create a nonce value.protected voidMethods inherited from class org.knowm.xchange.BaseExchange
getAccountService, getExchangeInstruments, getExchangeMetaData, getExchangeSpecification, getMarketDataService, getTradeService, loadExchangeMetaData, loadMetaData, remoteInit, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.knowm.xchange.Exchange
getResilienceRegistries
-
Constructor Details
-
OkCoinExchange
public OkCoinExchange()
-
-
Method Details
-
futuresContractOfConfig
Extract contract used by spec -
applySpecification
Description copied from interface:ExchangeApplies any exchange specific parameters- Specified by:
applySpecificationin interfaceExchange- Overrides:
applySpecificationin classBaseExchange- Parameters:
exchangeSpecification- TheExchangeSpecification
-
initServices
protected void initServices()- Specified by:
initServicesin classBaseExchange
-
getDefaultExchangeSpecification
- Returns:
- A default ExchangeSpecification to use during the creation process if one is not supplied
-
getNonceFactory
Description copied from interface:ExchangeThe 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:
getNonceFactoryin interfaceExchange- Overrides:
getNonceFactoryin classBaseExchange- Returns:
- Synchronized value factory
-
getMetaDataFileName
- Overrides:
getMetaDataFileNamein classBaseExchange
-