Class BitgetStreamingExchange
java.lang.Object
org.knowm.xchange.BaseExchange
org.knowm.xchange.bitget.BitgetExchange
info.bitrich.xchangestream.bitget.BitgetStreamingExchange
- All Implemented Interfaces:
StreamingExchange,Exchange
-
Field Summary
Fields inherited from class org.knowm.xchange.BaseExchange
accountService, exchangeMetaData, exchangeSpecification, logger, marketDataService, tradeServiceFields inherited from interface org.knowm.xchange.Exchange
USE_SANDBOXFields inherited from interface info.bitrich.xchangestream.core.StreamingExchange
ACCEPT_ALL_CERITICATES, AUTO_RECONNECT, ENABLE_LOGGING_HANDLER, L3_ORDERBOOK, SOCKS_PROXY_HOST, SOCKS_PROXY_PORT, WS_CONNECTION_TIMEOUT, WS_IDLE_TIMEOUT, WS_RETRY_DURATION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Completableconnect(ProductSubscription... args) Connects to the WebSocket API of the exchange.io.reactivex.rxjava3.core.CompletableDisconnect from the WebSocket API.booleanisAlive()Checks whether connection to the exchange is alive.voiduseCompressedMessages(boolean compressedMessages) Set whether or not to enable compression handler.Methods inherited from class org.knowm.xchange.bitget.BitgetExchange
getDefaultExchangeSpecification, initServices, remoteInitMethods inherited from class org.knowm.xchange.BaseExchange
applySpecification, getExchangeInstruments, getExchangeMetaData, getExchangeSpecification, getMetaDataFileName, getNonceFactory, loadExchangeMetaData, loadMetaData, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.knowm.xchange.Exchange
applySpecification, getAccountService, getDefaultExchangeSpecification, getExchangeInstruments, getExchangeMetaData, getExchangeSpecification, getMarketDataService, getNonceFactory, getResilienceRegistries, getTradeService, remoteInit, updateExchangeMetaDataMethods inherited from interface info.bitrich.xchangestream.core.StreamingExchange
applyStreamingSpecification, applyWebsocketTimeouts, connectionIdle, connectionStateObservable, connectionSuccess, disconnectObservable, getStreamingAccountService, getStreamingMarketDataService, getStreamingTradeService, messageDelay, reconnectFailure, resubscribeChannels
-
Constructor Details
-
BitgetStreamingExchange
public BitgetStreamingExchange()
-
-
Method Details
-
connect
Description copied from interface:StreamingExchangeConnects to the WebSocket API of the exchange.- Specified by:
connectin interfaceStreamingExchange- Parameters:
args- Product subscription is used only in certain exchanges where you need to specify subscriptions during the connect phase.- Returns:
Completablethat completes upon successful connection.
-
disconnect
public io.reactivex.rxjava3.core.Completable disconnect()Description copied from interface:StreamingExchangeDisconnect from the WebSocket API.- Specified by:
disconnectin interfaceStreamingExchange- Returns:
Completablethat completes upon successful disconnect.
-
isAlive
public boolean isAlive()Description copied from interface:StreamingExchangeChecks whether connection to the exchange is alive.- Specified by:
isAlivein interfaceStreamingExchange- Returns:
- true if connection is open, otherwise false.
-
useCompressedMessages
public void useCompressedMessages(boolean compressedMessages) Description copied from interface:StreamingExchangeSet whether or not to enable compression handler.- Specified by:
useCompressedMessagesin interfaceStreamingExchange- Parameters:
compressedMessages- Defaults to false
-