Package info.bitrich.xchangestream.lgo
Class LgoStreamingExchange
java.lang.Object
org.knowm.xchange.BaseExchange
org.knowm.xchange.lgo.LgoExchange
info.bitrich.xchangestream.lgo.LgoStreamingExchange
- All Implemented Interfaces:
- StreamingExchange,- Exchange
- 
Field SummaryFields inherited from class org.knowm.xchange.BaseExchangeexchangeMetaData, exchangeSpecification, loggerFields 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 TypeMethodDescriptionvoidapplySpecification(ExchangeSpecification exchangeSpecification) Applies any exchange specific parametersio.reactivex.rxjava3.core.Completableconnect(ProductSubscription... args) Connects to the WebSocket API of the exchange.io.reactivex.rxjava3.core.Observable<ConnectionStateModel.State>Observable for connectionState.io.reactivex.rxjava3.core.CompletableDisconnect from the WebSocket API.Returns service that can be used to access streaming account data.Returns service that can be used to access streaming market data.Returns service that can be used to access streaming trade data.protected voidbooleanisAlive()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.lgo.LgoExchangegetCurrencies, getDefaultExchangeSpecification, getMarketDataService, getProducts, getSignatureService, getTradeService, remoteInitMethods inherited from class org.knowm.xchange.BaseExchangegetAccountService, getExchangeInstruments, getExchangeMetaData, getExchangeSpecification, getMetaDataFileName, getNonceFactory, loadExchangeMetaData, loadMetaData, toStringMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.knowm.xchange.ExchangegetAccountService, getDefaultExchangeSpecification, getExchangeInstruments, getExchangeMetaData, getExchangeSpecification, getMarketDataService, getNonceFactory, getResilienceRegistries, getTradeService, remoteInitMethods inherited from interface info.bitrich.xchangestream.core.StreamingExchangeapplyStreamingSpecification, connectionIdle, connectionSuccess, disconnectObservable, messageDelay, reconnectFailure, resubscribeChannels
- 
Constructor Details- 
LgoStreamingExchangepublic LgoStreamingExchange()
 
- 
- 
Method Details- 
initServicesprotected void initServices()- Overrides:
- initServicesin class- LgoExchange
 
- 
applySpecificationDescription copied from interface:ExchangeApplies any exchange specific parameters- Specified by:
- applySpecificationin interface- Exchange
- Overrides:
- applySpecificationin class- BaseExchange
- Parameters:
- exchangeSpecification- The- ExchangeSpecification
 
- 
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.
 
- 
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.
 
- 
getStreamingMarketDataServiceDescription copied from interface:StreamingExchangeReturns service that can be used to access streaming market data.- Specified by:
- getStreamingMarketDataServicein interface- StreamingExchange
 
- 
getStreamingAccountServiceDescription copied from interface:StreamingExchangeReturns service that can be used to access streaming account data.- Specified by:
- getStreamingAccountServicein interface- StreamingExchange
 
- 
getStreamingTradeServiceDescription copied from interface:StreamingExchangeReturns service that can be used to access streaming trade data.- Specified by:
- getStreamingTradeServicein interface- StreamingExchange
 
- 
connectionStateObservableDescription copied from interface:StreamingExchangeObservable for connectionState. designed to replaces connectionSuccess reconnectFailure disconnectObservable- Specified by:
- connectionStateObservablein interface- StreamingExchange
- Returns:
- Observable
 
- 
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
 
 
-