Package info.bitrich.xchangestream.okex
Class OkexStreamingExchange
java.lang.Object
org.knowm.xchange.BaseExchange
org.knowm.xchange.okex.OkexExchange
info.bitrich.xchangestream.okex.OkexStreamingExchange
- All Implemented Interfaces:
StreamingExchange,org.knowm.xchange.Exchange
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.knowm.xchange.okex.OkexExchange
accountLevel, PARAM_AWS_HOST, PARAM_AWS_SSL_URI, PARAM_PASSPHRASE, PARAM_SIMULATED, PARAM_USE_AWSFields 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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.Completableconnect(ProductSubscription... args) io.reactivex.CompletablebooleanisAlive()voidsetChannelInactiveHandler(WebSocketClientHandler.WebSocketMessageHandler channelInactiveHandler) Enables the user to listen on channel inactive events and react appropriately.voiduseCompressedMessages(boolean compressedMessages) Methods inherited from class org.knowm.xchange.okex.OkexExchange
applySpecification, getDefaultExchangeSpecification, getNonceFactory, getResilienceRegistries, initServices, remoteInit, useSandboxMethods inherited from class org.knowm.xchange.BaseExchange
getAccountService, getExchangeInstruments, getExchangeMetaData, getExchangeSpecification, getMarketDataService, getMetaDataFileName, getTradeService, 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, remoteInitMethods inherited from interface info.bitrich.xchangestream.core.StreamingExchange
applyStreamingSpecification, connectionIdle, connectionStateObservable, connectionSuccess, disconnectObservable, getStreamingAccountService, messageDelay, reconnectFailure, resubscribeChannels
-
Field Details
-
WS_PUBLIC_CHANNEL_URI
- See Also:
-
WS_PRIVATE_CHANNEL_URI
- See Also:
-
AWS_WS_PUBLIC_CHANNEL_URI
- See Also:
-
AWS_WS_PRIVATE_CHANNEL_URI
- See Also:
-
SANDBOX_WS_PUBLIC_CHANNEL_URI
- See Also:
-
SANDBOX_WS_PRIVATE_CHANNEL_URI
- See Also:
-
-
Constructor Details
-
OkexStreamingExchange
public OkexStreamingExchange()
-
-
Method Details
-
connect
- Specified by:
connectin interfaceStreamingExchange
-
disconnect
public io.reactivex.Completable disconnect()- Specified by:
disconnectin interfaceStreamingExchange
-
isAlive
public boolean isAlive()- Specified by:
isAlivein interfaceStreamingExchange
-
getStreamingMarketDataService
- Specified by:
getStreamingMarketDataServicein interfaceStreamingExchange
-
getStreamingTradeService
- Specified by:
getStreamingTradeServicein interfaceStreamingExchange
-
useCompressedMessages
public void useCompressedMessages(boolean compressedMessages) - Specified by:
useCompressedMessagesin interfaceStreamingExchange
-
setChannelInactiveHandler
public void setChannelInactiveHandler(WebSocketClientHandler.WebSocketMessageHandler channelInactiveHandler) Enables the user to listen on channel inactive events and react appropriately.- Parameters:
channelInactiveHandler- a WebSocketMessageHandler instance.
-