Package org.knowm.xchange.dragonex
Class DragonexExchange
- java.lang.Object
-
- org.knowm.xchange.BaseExchange
-
- org.knowm.xchange.dragonex.DragonexExchange
-
- All Implemented Interfaces:
Exchange
public class DragonexExchange extends BaseExchange implements Exchange
-
-
Field Summary
-
Fields inherited from class org.knowm.xchange.BaseExchange
accountService, exchangeMetaData, exchangeSpecification, logger, marketDataService, tradeService
-
-
Constructor Summary
Constructors Constructor Description DragonexExchange()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DragonexAuthenticated
dragonexAuthenticated()
Dragonex
dragonexPublic()
long
getCoinId(String currency)
String
getCurrency(long coinId)
ExchangeSpecification
getDefaultExchangeSpecification()
si.mazi.rescu.SynchronizedValueFactory<Long>
getNonceFactory()
The nonce factory used to create a nonce value.Token
getOrCreateToken()
protected void
initServices()
CurrencyPair
pair(long symbolId)
void
remoteInit()
Initialize this instance with the remote meta data.si.mazi.rescu.ParamsDigest
signatureCreator()
long
symbolId(CurrencyPair pair)
-
Methods inherited from class org.knowm.xchange.BaseExchange
applySpecification, getAccountService, getExchangeMetaData, getExchangeSpecification, getExchangeSymbols, getMarketDataService, getMetaDataFileName, getTradeService, loadExchangeMetaData, loadMetaData, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.knowm.xchange.Exchange
applySpecification, getAccountService, getExchangeInstruments, getExchangeMetaData, getExchangeSpecification, getExchangeSymbols, getMarketDataService, getResilienceRegistries, getTradeService
-
-
-
-
Method Detail
-
initServices
protected void initServices()
- Specified by:
initServices
in classBaseExchange
-
pair
public CurrencyPair pair(long symbolId)
-
symbolId
public long symbolId(CurrencyPair pair)
-
getOrCreateToken
public Token getOrCreateToken() throws DragonexException, IOException
- Throws:
DragonexException
IOException
-
dragonexPublic
public Dragonex dragonexPublic()
-
dragonexAuthenticated
public DragonexAuthenticated dragonexAuthenticated()
-
signatureCreator
public si.mazi.rescu.ParamsDigest signatureCreator()
-
getDefaultExchangeSpecification
public ExchangeSpecification getDefaultExchangeSpecification()
- Specified by:
getDefaultExchangeSpecification
in interfaceExchange
- 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 interfaceExchange
- Returns:
- Synchronized value factory
-
remoteInit
public void remoteInit() throws IOException, ExchangeException
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
-
getCoinId
public long getCoinId(String currency)
-
getCurrency
public String getCurrency(long coinId)
-
-