Package org.knowm.xchange.blockchain
Class BlockchainExchange
java.lang.Object
org.knowm.xchange.BaseExchange
org.knowm.xchange.blockchain.BlockchainExchange
- All Implemented Interfaces:
Exchange
- Author:
- scuevas
-
Field Summary
Modifier and TypeFieldDescriptionprotected BlockchainAuthenticated
protected static ResilienceRegistries
Fields inherited from class org.knowm.xchange.BaseExchange
accountService, exchangeMetaData, exchangeSpecification, logger, marketDataService, tradeService
Fields inherited from interface org.knowm.xchange.Exchange
USE_SANDBOX
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionsi.mazi.rescu.SynchronizedValueFactory<Long>
The nonce factory used to create a nonce value.resilience4j registries with retry strategies, rate limiters, etc.protected void
void
Initialize this instance with the remote meta data.Methods inherited from class org.knowm.xchange.BaseExchange
applySpecification, getAccountService, getExchangeInstruments, getExchangeMetaData, getExchangeSpecification, getMarketDataService, getMetaDataFileName, getTradeService, loadExchangeMetaData, loadMetaData, toString
-
Field Details
-
RESILIENCE_REGISTRIES
-
blockchain
-
-
Constructor Details
-
BlockchainExchange
public BlockchainExchange()
-
-
Method Details
-
initServices
protected void initServices()- Specified by:
initServices
in classBaseExchange
-
remoteInit
Description copied from interface:Exchange
Initialize this instance with the remote meta data. Most exchanges require this method to be called beforeExchange.getExchangeMetaData()
. Some exchanges require it before using some of their services.- Specified by:
remoteInit
in interfaceExchange
- Overrides:
remoteInit
in classBaseExchange
- Throws:
IOException
ExchangeException
-
getDefaultExchangeSpecification
- Returns:
- A default ExchangeSpecification to use during the creation process if one is not supplied
-
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 interfaceExchange
- Overrides:
getNonceFactory
in classBaseExchange
- Returns:
- Synchronized value factory
-
getResilienceRegistries
Description copied from interface:Exchange
resilience4j registries with retry strategies, rate limiters, etc. used for this exchange.- Returns:
- resilience4j registries
-