Class BinanceExchange

All Implemented Interfaces:
Direct Known Subclasses:
BinanceStreamingExchange, BinanceUsExchange

public class BinanceExchange
extends BaseExchange
implements Exchange
  • Field Details

  • Constructor Details

    • BinanceExchange

      public BinanceExchange()
  • Method Details

    • initServices

      protected void initServices()
      Specified by:
      initServices in class BaseExchange
    • 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.
      Specified by:
      getNonceFactory in interface Exchange
      getNonceFactory in class BaseExchange
      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.
      Specified by:
      getResilienceRegistries in interface Exchange
      resilience4j registries
    • getDefaultExchangeSpecification

      public ExchangeSpecification getDefaultExchangeSpecification()
      Specified by:
      getDefaultExchangeSpecification in interface Exchange
      A default ExchangeSpecification to use during the creation process if one is not supplied
    • applySpecification

      public void applySpecification​(ExchangeSpecification exchangeSpecification)
      Description copied from interface: Exchange
      Applies any exchange specific parameters
      Specified by:
      applySpecification in interface Exchange
      applySpecification in class BaseExchange
      exchangeSpecification - The ExchangeSpecification
    • isFuturesSandbox

      public boolean isFuturesSandbox()
    • usingSandbox

      public boolean usingSandbox()
    • 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 before Exchange.getExchangeMetaData(). Some exchanges require it before using some of their services.
      Specified by:
      remoteInit in interface Exchange
      remoteInit in class BaseExchange
    • isAuthenticated

      protected boolean isAuthenticated()