diffBookDepth method

Stream<DiffBookDepth> diffBookDepth(
  1. String symbol
)
inherited

Difference book depth

This can be used to update an existing book with incremental changes

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

Implementation

Stream<DiffBookDepth> diffBookDepth(String symbol) {
  final channel = _public('${symbol.toLowerCase()}@depth');

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