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
public class BitmexBaseService extends BaseExchangeService<BitmexExchange> implements BaseService
-
Field Summary
Fields Modifier and Type Field Description protected BitmexAuthenticated
bitmex
protected static Integer
rateLimit
protected static Integer
rateLimitRemaining
protected static Long
rateLimitReset
protected si.mazi.rescu.ParamsDigest
signatureCreator
Fields inherited from class org.knowm.xchange.service.BaseExchangeService
exchange
-
Constructor Summary
Constructors Constructor Description BitmexBaseService(BitmexExchange exchange)
Constructor -
Method Summary
Modifier and Type Method Description int
getRateLimit()
int
getRateLimitRemaining()
long
getRateLimitReset()
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()
-