Class CoinMarketCapExchange
java.lang.Object
org.knowm.xchange.BaseExchange
org.knowm.xchange.coinmarketcap.deprecated.v2.CoinMarketCapExchange
- All Implemented Interfaces:
Exchange
- Author:
- allenday
-
Field Summary
Fields inherited from class org.knowm.xchange.BaseExchange
accountService, exchangeMetaData, logger, tradeService
Fields inherited from interface org.knowm.xchange.Exchange
USE_SANDBOX
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applySpecification
(ExchangeSpecification exchangeSpecification) Applies any exchange specific parametersAn account service typically provides access to the user's private exchange dataReturns a list of CurrencyPair objects.The Meta Data defining some semi-static properties of an exchange such as currency pairs, trading fees, etc.A market data service typically consists of a regularly updated list of the available prices for the various symbolsAn trade service typically provides access to trading functionalityprotected void
void
Initialize this instance with the remote meta data.Methods inherited from class org.knowm.xchange.BaseExchange
getMetaDataFileName, getNonceFactory, 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
getNonceFactory, getResilienceRegistries
-
Constructor Details
-
CoinMarketCapExchange
public CoinMarketCapExchange()
-
-
Method Details
-
getDefaultExchangeSpecification
- Specified by:
getDefaultExchangeSpecification
in interfaceExchange
- Returns:
- A default ExchangeSpecification to use during the creation process if one is not supplied
-
getExchangeSpecification
- Specified by:
getExchangeSpecification
in interfaceExchange
- Overrides:
getExchangeSpecification
in classBaseExchange
- Returns:
- The ExchangeSpecification in use for this exchange
-
applySpecification
Description copied from interface:Exchange
Applies any exchange specific parameters- Specified by:
applySpecification
in interfaceExchange
- Overrides:
applySpecification
in classBaseExchange
- Parameters:
exchangeSpecification
- TheExchangeSpecification
-
getExchangeMetaData
Description copied from interface:Exchange
The Meta Data defining some semi-static properties of an exchange such as currency pairs, trading fees, etc.- Specified by:
getExchangeMetaData
in interfaceExchange
- Overrides:
getExchangeMetaData
in classBaseExchange
- Returns:
- The exchange's meta data
-
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
-
initServices
protected void initServices()- Specified by:
initServices
in classBaseExchange
-
getTradeService
Description copied from interface:Exchange
An trade service typically provides access to trading functionalityTypically access is restricted by a secret API key and/or username password authentication which are usually provided in the
ExchangeSpecification
- Specified by:
getTradeService
in interfaceExchange
- Overrides:
getTradeService
in classBaseExchange
- Returns:
- The exchange's trade service
-
getAccountService
Description copied from interface:Exchange
An account service typically provides access to the user's private exchange dataTypically access is restricted by a secret API key and/or username password authentication which are usually provided in the
ExchangeSpecification
- Specified by:
getAccountService
in interfaceExchange
- Overrides:
getAccountService
in classBaseExchange
- Returns:
- The exchange's account service
-
getMarketDataService
Description copied from interface:Exchange
A market data service typically consists of a regularly updated list of the available prices for the various symbolsThis is the non-streaming (blocking) version of the service
- Specified by:
getMarketDataService
in interfaceExchange
- Overrides:
getMarketDataService
in classBaseExchange
- Returns:
- The exchange's market data service
-
getExchangeInstruments
Description copied from interface:Exchange
Returns a list of CurrencyPair objects. This list can either come originally from a loaded json file or from a remote call if the implementation override's the `remoteInit` method.- Specified by:
getExchangeInstruments
in interfaceExchange
- Overrides:
getExchangeInstruments
in classBaseExchange
- Returns:
- The exchange's symbols
-