Package info.bitrich.xchangestream.cexio
Class CexioStreamingRawService
java.lang.Object
info.bitrich.xchangestream.service.ConnectableService
info.bitrich.xchangestream.service.netty.NettyStreamingService<com.fasterxml.jackson.databind.JsonNode>
info.bitrich.xchangestream.service.netty.JsonNettyStreamingService
info.bitrich.xchangestream.cexio.CexioStreamingRawService
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class info.bitrich.xchangestream.service.netty.NettyStreamingService
NettyStreamingService.NettyWebSocketClientHandler, NettyStreamingService.Subscription -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class info.bitrich.xchangestream.service.netty.JsonNettyStreamingService
objectMapperFields inherited from class info.bitrich.xchangestream.service.netty.NettyStreamingService
channels, DEFAULT_CONNECTION_TIMEOUT, DEFAULT_IDLE_TIMEOUT, DEFAULT_RETRY_DURATION, uriFields inherited from class info.bitrich.xchangestream.service.ConnectableService
BEFORE_CONNECTION_HANDLER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Completableconnect()protected StringgetChannelNameFromMessage(com.fasterxml.jackson.databind.JsonNode message) static CurrencyPairGetCurrencyPairForChannelName(String channelName) static StringGetOrderBookChannelForCurrencyPair(CurrencyPair currencyPair) io.reactivex.rxjava3.core.Observable<Order>getSubscribeMessage(String channelName, Object... args) io.reactivex.rxjava3.core.Observable<CexioWebSocketTransaction>getUnsubscribeMessage(String channelName, Object... args) protected voidhandleMessage(com.fasterxml.jackson.databind.JsonNode message) voidmessageHandler(String message) Handler that receives incoming messages.voidvoidsetApiSecret(String apiSecret) Methods inherited from class info.bitrich.xchangestream.service.netty.JsonNettyStreamingService
processArrayMessageSeparately, sendObjectMessageMethods inherited from class info.bitrich.xchangestream.service.netty.NettyStreamingService
disconnect, getChannel, getCustomHeaders, getSubscriptionUniqueId, getWebSocketClientExtensionHandler, getWebSocketClientHandler, handleChannelError, handleChannelMessage, handleError, handleIdle, isSocketOpen, openConnection, resubscribeChannels, sendMessage, setAcceptAllCertificates, setAutoReconnect, setEnableLoggingHandler, setLoggingHandlerLevel, setSocksProxyHost, setSocksProxyPort, subscribeChannel, subscribeConnectionState, subscribeConnectionSuccess, subscribeDisconnect, subscribeIdle, subscribeReconnectFailure, useCompressedMessagesMethods inherited from class info.bitrich.xchangestream.service.ConnectableService
setBeforeConnectionHandler
-
Field Details
-
CONNECTED
- See Also:
-
AUTH
- See Also:
-
PING
- See Also:
-
PONG
- See Also:
-
ORDER
- See Also:
-
TRANSACTION
- See Also:
-
ORDERBOOK
- See Also:
-
ORDERBOOK_UPDATE
- See Also:
-
-
Constructor Details
-
CexioStreamingRawService
-
-
Method Details
-
GetOrderBookChannelForCurrencyPair
-
GetCurrencyPairForChannelName
-
getChannelNameFromMessage
protected String getChannelNameFromMessage(com.fasterxml.jackson.databind.JsonNode message) throws IOException - Specified by:
getChannelNameFromMessagein classNettyStreamingService<com.fasterxml.jackson.databind.JsonNode>- Throws:
IOException
-
getSubscribeMessage
- Specified by:
getSubscribeMessagein classNettyStreamingService<com.fasterxml.jackson.databind.JsonNode>- Throws:
IOException
-
getUnsubscribeMessage
- Specified by:
getUnsubscribeMessagein classNettyStreamingService<com.fasterxml.jackson.databind.JsonNode>- Throws:
IOException
-
messageHandler
Description copied from class:NettyStreamingServiceHandler that receives incoming messages.- Overrides:
messageHandlerin classJsonNettyStreamingService- Parameters:
message- Content of the message from the server.
-
connect
public io.reactivex.rxjava3.core.Completable connect()- Overrides:
connectin classConnectableService
-
handleMessage
protected void handleMessage(com.fasterxml.jackson.databind.JsonNode message) - Overrides:
handleMessagein classNettyStreamingService<com.fasterxml.jackson.databind.JsonNode>
-
setApiKey
-
setApiSecret
-
getOrderData
-
getTransactions
-