Package org.knowm.xchange.binance
Class BinanceExchange
- java.lang.Object
-
- org.knowm.xchange.BaseExchange
-
- org.knowm.xchange.binance.BinanceExchange
-
- All Implemented Interfaces:
Exchange
- Direct Known Subclasses:
BinanceStreamingExchange
public class BinanceExchange extends BaseExchange
-
-
Field Summary
-
Fields inherited from class org.knowm.xchange.BaseExchange
accountService, exchangeMetaData, exchangeSpecification, logger, marketDataService, tradeService
-
-
Constructor Summary
Constructors Constructor Description BinanceExchange()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ExchangeSpecification
getDefaultExchangeSpecification()
BinanceExchangeInfo
getExchangeInfo()
si.mazi.rescu.SynchronizedValueFactory<Long>
getNonceFactory()
The nonce factory used to create a nonce value.ResilienceRegistries
getResilienceRegistries()
resilience4j registries with retry strategies, rate limiters, etc.si.mazi.rescu.SynchronizedValueFactory<Long>
getTimestampFactory()
protected void
initServices()
void
remoteInit()
Initialize this instance with the remote meta data.static void
resetResilienceRegistries()
-
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
getExchangeInstruments
-
-
-
-
Method Detail
-
initServices
protected void initServices()
- Specified by:
initServices
in classBaseExchange
-
getTimestampFactory
public si.mazi.rescu.SynchronizedValueFactory<Long> getTimestampFactory()
-
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.- Returns:
- Synchronized value factory
-
resetResilienceRegistries
public static void resetResilienceRegistries()
-
getResilienceRegistries
public ResilienceRegistries getResilienceRegistries()
Description copied from interface:Exchange
resilience4j registries with retry strategies, rate limiters, etc. used for this exchange.- Returns:
- resilience4j registries
-
getDefaultExchangeSpecification
public ExchangeSpecification getDefaultExchangeSpecification()
- Returns:
- A default ExchangeSpecification to use during the creation process if one is not supplied
-
getExchangeInfo
public BinanceExchangeInfo getExchangeInfo()
-
remoteInit
public void 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
-
-