allBookTicker method

Stream<WSBookTicker> allBookTicker()
inherited

Pushes any update to the best bid or ask's price or quantity in real-time for all symbols

https://github.com/binance-exchange/binance-official-api-docs/blob/master/web-socket-streams.md#all-book-tickers-stream

Implementation

Stream<WSBookTicker> allBookTicker() {
  final channel = _public('!bookTicker');

  return channel.stream
      .map<Map>(_toMap)
      .map<WSBookTicker>((m) => WSBookTicker.fromMap(m));
}