Package org.knowm.xchange.kucoin
Class KucoinExchange
java.lang.Object
org.knowm.xchange.BaseExchange
org.knowm.xchange.kucoin.KucoinExchange
- All Implemented Interfaces:
Exchange
- Direct Known Subclasses:
KucoinStreamingExchange
-
Field Summary
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 TypeMethodDescriptionvoid
applySpecification
(ExchangeSpecification exchangeSpecification) Applies any exchange specific parametersAn account service typically provides access to the user's private exchange dataA market data service typically consists of a regularly updated list of the available prices for the various symbolsresilience4j registries with retry strategies, rate limiters, etc.An 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
getExchangeInstruments, getExchangeMetaData, getExchangeSpecification, 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
getExchangeInstruments, getExchangeMetaData, getExchangeSpecification, getNonceFactory
-
Constructor Details
-
KucoinExchange
public KucoinExchange()
-
-
Method Details
-
applySpecification
Description copied from interface:Exchange
Applies any exchange specific parameters- Specified by:
applySpecification
in interfaceExchange
- Overrides:
applySpecification
in classBaseExchange
- Parameters:
exchangeSpecification
- TheExchangeSpecification
-
initServices
protected void initServices()- Specified by:
initServices
in classBaseExchange
-
getDefaultExchangeSpecification
- Specified by:
getDefaultExchangeSpecification
in interfaceExchange
- Returns:
- A default ExchangeSpecification to use during the creation process if one is not supplied
-
getResilienceRegistries
Description copied from interface:Exchange
resilience4j registries with retry strategies, rate limiters, etc. used for this exchange.- Specified by:
getResilienceRegistries
in interfaceExchange
- Returns:
- resilience4j registries
-
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
-
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
-
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
-
getPublicWebsocketConnectionDetails
- Throws:
IOException
-
getPrivateWebsocketConnectionDetails
- Throws:
IOException
-