Package org.knowm.xchange.bitmex.service
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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final BitmexAuthenticated
protected static Integer
protected static Integer
protected static Long
protected final si.mazi.rescu.ParamsDigest
Fields inherited from class org.knowm.xchange.service.BaseExchangeService
exchange
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
int
long
protected ExchangeException
handleError
(Exception exception) protected <T extends si.mazi.rescu.HttpResponseAware>
TupdateRateLimit
(Supplier<T> httpResponseAwareSupplier) see https://www.bitmex.com/app/restAPI#Request-Rate-LimitsMethods inherited from class org.knowm.xchange.service.BaseExchangeService
verifyOrder, verifyOrder, verifyOrder
-
Field Details
-
bitmex
-
signatureCreator
protected final si.mazi.rescu.ParamsDigest signatureCreator -
rateLimit
-
rateLimitRemaining
-
rateLimitReset
-
-
Constructor Details
-
BitmexBaseService
Constructor- Parameters:
exchange
-
-
-
Method Details
-
handleError
-
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()
-