Class BitmexBaseService

java.lang.Object
org.knowm.xchange.service.BaseExchangeService<BitmexExchange>
org.knowm.xchange.bitmex.service.BitmexBaseService
All Implemented Interfaces:
BaseService
Direct Known Subclasses:
BitmexAccountServiceRaw, BitmexMarketDataServiceRaw, BitmexTradeServiceRaw

public class BitmexBaseService
extends BaseExchangeService<BitmexExchange>
implements BaseService
  • Field Details

    • bitmex

      protected final BitmexAuthenticated bitmex
    • signatureCreator

      protected final si.mazi.rescu.ParamsDigest signatureCreator
    • rateLimit

      protected static Integer rateLimit
    • rateLimitRemaining

      protected static Integer rateLimitRemaining
    • rateLimitReset

      protected static Long rateLimitReset
  • Constructor Details

    • BitmexBaseService

      public BitmexBaseService​(BitmexExchange exchange)
      Constructor
      Parameters:
      exchange -
  • Method Details

    • handleError

      protected ExchangeException handleError​(Exception exception)
    • updateRateLimit

      protected <T extends si.mazi.rescu.HttpResponseAware> T updateRateLimit​(Supplier<T> httpResponseAwareSupplier)
      see https://www.bitmex.com/app/restAPI#Request-Rate-Limits
    • getRateLimit

      public int getRateLimit()
    • getRateLimitRemaining

      public int getRateLimitRemaining()
    • getRateLimitReset

      public long getRateLimitReset()