public class WebSocketStreamClientImpl extends Object implements SubscriptionClient
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, createpublic void unsubscribeAll()
SubscriptionClientunsubscribeAll in interface SubscriptionClientpublic void subscribeAggregateTradeEvent(String symbol, SubscriptionListener<AggregateTradeEvent> subscriptionListener, SubscriptionErrorHandler errorHandler)
SubscriptionClientsubscribeAggregateTradeEvent in interface SubscriptionClientsymbol - The symbol, like "btcusdt".subscriptionListener - The implementation is required. onReceive will be called
if receive server's update.errorHandler - The error handler will be called if subscription failed
or error happen between client and Binance server.public void subscribeMarkPriceEvent(String symbol, SubscriptionListener<MarkPriceEvent> subscriptionListener, SubscriptionErrorHandler errorHandler)
SubscriptionClientsubscribeMarkPriceEvent in interface SubscriptionClientsymbol - The symbol, like "btcusdt".subscriptionListener - The implementation is required. onReceive will be called
if receive server's update.errorHandler - The error handler will be called if subscription failed
or error happen between client and Binance server.public void subscribeCandlestickEvent(String symbol, CandlestickInterval interval, SubscriptionListener<CandlestickEvent> subscriptionListener, SubscriptionErrorHandler errorHandler)
SubscriptionClientsubscribeCandlestickEvent in interface SubscriptionClientsymbol - The symbol, like "btcusdt".interval - The candlestick interval, like "ONE_MINUTE".subscriptionListener - The implementation is required. onReceive will be called
if receive server's update.errorHandler - The error handler will be called if subscription failed
or error happen between client and Binance server.public void subscribeSymbolMiniTickerEvent(String symbol, SubscriptionListener<SymbolMiniTickerEvent> subscriptionListener, SubscriptionErrorHandler errorHandler)
SubscriptionClientsubscribeSymbolMiniTickerEvent in interface SubscriptionClientsymbol - The symbol, like "btcusdt".subscriptionListener - The implementation is required. onReceive will be called
if receive server's update.errorHandler - The error handler will be called if subscription failed
or error happen between client and Binance server.public void subscribeAllMiniTickerEvent(SubscriptionListener<List<SymbolMiniTickerEvent>> subscriptionListener, SubscriptionErrorHandler errorHandler)
SubscriptionClientsubscribeAllMiniTickerEvent in interface SubscriptionClientsubscriptionListener - The implementation is required. onReceive will be called
if receive server's update.errorHandler - The error handler will be called if subscription failed
or error happen between client and Binance server.public void subscribeSymbolTickerEvent(String symbol, SubscriptionListener<SymbolTickerEvent> subscriptionListener, SubscriptionErrorHandler errorHandler)
SubscriptionClientsubscribeSymbolTickerEvent in interface SubscriptionClientsymbol - The symbol, like "btcusdt".subscriptionListener - The implementation is required. onReceive will be called
if receive server's update.errorHandler - The error handler will be called if subscription failed
or error happen between client and Binance server.public void subscribeAllTickerEvent(SubscriptionListener<List<SymbolTickerEvent>> subscriptionListener, SubscriptionErrorHandler errorHandler)
SubscriptionClientsubscribeAllTickerEvent in interface SubscriptionClientsubscriptionListener - The implementation is required. onReceive will be called
if receive server's update.errorHandler - The error handler will be called if subscription failed
or error happen between client and Binance server.public void subscribeSymbolBookTickerEvent(String symbol, SubscriptionListener<SymbolBookTickerEvent> subscriptionListener, SubscriptionErrorHandler errorHandler)
SubscriptionClientsubscribeSymbolBookTickerEvent in interface SubscriptionClientsymbol - The symbol, like "btcusdt".subscriptionListener - The implementation is required. onReceive will be called
if receive server's update.errorHandler - The error handler will be called if subscription failed
or error happen between client and Binance server.public void subscribeAllBookTickerEvent(SubscriptionListener<SymbolBookTickerEvent> subscriptionListener, SubscriptionErrorHandler errorHandler)
SubscriptionClientsubscribeAllBookTickerEvent in interface SubscriptionClientsubscriptionListener - The implementation is required. onReceive will be called
if receive server's update.errorHandler - The error handler will be called if subscription failed
or error happen between client and Binance server.public void subscribeSymbolLiquidationOrderEvent(String symbol, SubscriptionListener<LiquidationOrderEvent> subscriptionListener, SubscriptionErrorHandler errorHandler)
SubscriptionClientsubscribeSymbolLiquidationOrderEvent in interface SubscriptionClientsymbol - The symbol, like "btcusdt".subscriptionListener - The implementation is required. onReceive will be called
if receive server's update.errorHandler - The error handler will be called if subscription failed
or error happen between client and Binance server.public void subscribeAllLiquidationOrderEvent(SubscriptionListener<LiquidationOrderEvent> subscriptionListener, SubscriptionErrorHandler errorHandler)
SubscriptionClientsubscribeAllLiquidationOrderEvent in interface SubscriptionClientsubscriptionListener - The implementation is required. onReceive will be called
if receive server's update.errorHandler - The error handler will be called if subscription failed
or error happen between client and Binance server.public void subscribeBookDepthEvent(String symbol, Integer limit, SubscriptionListener<OrderBookEvent> subscriptionListener, SubscriptionErrorHandler errorHandler)
SubscriptionClientsubscribeBookDepthEvent in interface SubscriptionClientsymbol - The symbol, like "btcusdt".limit - The limit.subscriptionListener - The implementation is required. onReceive will be called
if receive server's update.errorHandler - The error handler will be called if subscription failed
or error happen between client and Binance server.public void subscribeDiffDepthEvent(String symbol, SubscriptionListener<OrderBookEvent> subscriptionListener, SubscriptionErrorHandler errorHandler)
SubscriptionClientsubscribeDiffDepthEvent in interface SubscriptionClientsymbol - The symbol, like "btcusdt".subscriptionListener - The implementation is required. onReceive will be called
if receive server's update.errorHandler - The error handler will be called if subscription failed
or error happen between client and Binance server.public void subscribeUserDataEvent(String listenKey, SubscriptionListener<UserDataUpdateEvent> subscriptionListener, SubscriptionErrorHandler errorHandler)
SubscriptionClientsubscribeUserDataEvent in interface SubscriptionClientlistenKey - The listenKey.subscriptionListener - The implementation is required. onReceive will be called
if receive server's update.errorHandler - The error handler will be called if subscription failed
or error happen between client and Binance server.Copyright © 2021. All rights reserved.