Skip to content

Commit 26638f2

Browse files
committed
Fix onAllBookTickersEvent
1 parent a3c0625 commit 26638f2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/com/binance/api/client/impl/BinanceApiWebSocketClientImpl.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,7 @@ public Closeable onBookTickerEvent(String symbols, BinanceApiCallback<BookTicker
8282

8383
public Closeable onAllBookTickersEvent(BinanceApiCallback<BookTickerEvent> callback) {
8484
final String channel = "!bookTicker";
85-
return createNewWebSocket(channel, new BinanceApiWebSocketListener<>(callback, new TypeReference<BookTickerEvent>() {
86-
}));
85+
return createNewWebSocket(channel, new BinanceApiWebSocketListener<>(callback, BookTickerEvent.class));
8786
}
8887

8988
/**

0 commit comments

Comments
 (0)