Package org.knowm.xchange.bitmex
Class BitmexExchange
java.lang.Object
org.knowm.xchange.BaseExchange
org.knowm.xchange.bitmex.BitmexExchange
- All Implemented Interfaces:
Exchange
- Direct Known Subclasses:
BitmexStreamingExchange
-
Field Summary
FieldsFields inherited from class org.knowm.xchange.BaseExchange
accountService, exchangeMetaData, exchangeSpecification, logger, marketDataService, tradeService
Fields inherited from interface org.knowm.xchange.Exchange
USE_SANDBOX
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
applySpecification
(ExchangeSpecification exchangeSpecification) Applies any exchange specific parametersdetermineActiveContract
(String baseSymbol, String counterSymbol, BitmexPrompt contractTimeframe) si.mazi.rescu.SynchronizedValueFactory<Long>
The nonce factory used to create a nonce value.protected void
void
Initialize this instance with the remote meta data.void
setRateLimitUpdateListener
(RateLimitUpdateListener rateLimitUpdateListener) void
Methods inherited from class org.knowm.xchange.BaseExchange
getAccountService, getExchangeInstruments, getExchangeMetaData, getExchangeSpecification, 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
getAccountService, getExchangeInstruments, getExchangeMetaData, getExchangeSpecification, getMarketDataService, getResilienceRegistries, getTradeService
-
Field Details
-
rateLimitUpdateListener
-
-
Constructor Details
-
BitmexExchange
public BitmexExchange()
-
-
Method Details
-
applySpecification
Description copied from interface:Exchange
Applies any exchange specific parameters- Specified by:
applySpecification
in interfaceExchange
- Overrides:
applySpecification
in classBaseExchange
- Parameters:
exchangeSpecification
- TheExchangeSpecification
-
initServices
protected void initServices()- Specified by:
initServices
in classBaseExchange
-
getDefaultExchangeSpecification
- Specified by:
getDefaultExchangeSpecification
in interfaceExchange
- Returns:
- A default ExchangeSpecification to use during the creation process if one is not supplied
-
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 interfaceExchange
- Overrides:
getNonceFactory
in classBaseExchange
- Returns:
- Synchronized value factory
-
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
- Throws:
IOException
-
getRateLimitUpdateListener
-
setRateLimitUpdateListener
-
updateExchangeMetaData
public void updateExchangeMetaData() -
determineActiveContract
public CurrencyPair determineActiveContract(String baseSymbol, String counterSymbol, BitmexPrompt contractTimeframe)
-