Package info.bitrich.xchangestream.dydx
Class dydxStreamingExchange
java.lang.Object
org.knowm.xchange.BaseExchange
org.knowm.xchange.dydx.dydxExchange
info.bitrich.xchangestream.dydx.dydxStreamingExchange
- All Implemented Interfaces:
- StreamingExchange,- Exchange
Author: Max Gao (gaamox@tutanota.com) Created: 20-02-2021
 
V3 Documentation: https://docs.dydx.exchange
Legacy Documentation: https://legacy-docs.dydx.exchange
- 
Field SummaryFields inherited from class org.knowm.xchange.dydx.dydxExchangeV1, V3, V3_ROPSTENFields inherited from class org.knowm.xchange.BaseExchangeaccountService, exchangeMetaData, exchangeSpecification, logger, marketDataService, tradeServiceFields inherited from interface org.knowm.xchange.ExchangeUSE_SANDBOXFields inherited from interface info.bitrich.xchangestream.core.StreamingExchangeACCEPT_ALL_CERITICATES, AUTO_RECONNECT, ENABLE_LOGGING_HANDLER, L3_ORDERBOOK, SOCKS_PROXY_HOST, SOCKS_PROXY_PORT
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.Returns service that can be used to access streaming market data.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.dydx.dydxExchangeapplySpecification, getDefaultExchangeSpecification, initServicesMethods inherited from class org.knowm.xchange.BaseExchangegetAccountService, getExchangeInstruments, getExchangeMetaData, getExchangeSpecification, getMarketDataService, getMetaDataFileName, getNonceFactory, getTradeService, loadExchangeMetaData, loadMetaData, remoteInit, toStringMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.knowm.xchange.ExchangeapplySpecification, getAccountService, getDefaultExchangeSpecification, getExchangeInstruments, getExchangeMetaData, getExchangeSpecification, getMarketDataService, getNonceFactory, getResilienceRegistries, getTradeService, remoteInitMethods inherited from interface info.bitrich.xchangestream.core.StreamingExchangeapplyStreamingSpecification, connectionIdle, connectionStateObservable, connectionSuccess, disconnectObservable, getStreamingAccountService, getStreamingTradeService, messageDelay, reconnectFailure, resubscribeChannels
- 
Constructor Details- 
dydxStreamingExchangepublic dydxStreamingExchange()
 
- 
- 
Method Details- 
connectDescription copied from interface:StreamingExchangeConnects to the WebSocket API of the exchange.- Specified by:
- connectin interface- StreamingExchange
- 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.
 
- 
disconnectpublic io.reactivex.rxjava3.core.Completable disconnect()Description copied from interface:StreamingExchangeDisconnect from the WebSocket API.- Specified by:
- disconnectin interface- StreamingExchange
- Returns:
- Completablethat completes upon successful disconnect.
 
- 
getStreamingMarketDataServiceDescription copied from interface:StreamingExchangeReturns service that can be used to access streaming market data.- Specified by:
- getStreamingMarketDataServicein interface- StreamingExchange
 
- 
isAlivepublic boolean isAlive()Description copied from interface:StreamingExchangeChecks whether connection to the exchange is alive.- Specified by:
- isAlivein interface- StreamingExchange
- Returns:
- true if connection is open, otherwise false.
 
- 
useCompressedMessagespublic void useCompressedMessages(boolean compressedMessages) Description copied from interface:StreamingExchangeSet whether or not to enable compression handler.- Specified by:
- useCompressedMessagesin interface- StreamingExchange
- Parameters:
- compressedMessages- Defaults to false
 
 
-