getLiveTicks method

  1. @override
Stream<Tick> getLiveTicks(
  1. String symbol
)
override

Real-time stream of live trades/ticks for the given symbol.

Implementation

@override
Stream<Tick> getLiveTicks(String symbol) {
  _stopLiveSimulation();
  _tickController = StreamController<Tick>.broadcast(
    onListen: _startLiveSimulation,
    onCancel: _stopLiveSimulation,
  );
  return _tickController!.stream;
}