pushPrice method

void pushPrice(
  1. double price, {
  2. double volume = 1.0,
})

Emits a live price tick with current timestamp.

Implementation

void pushPrice(double price, {double volume = 1.0}) {
  pushTick(
    Tick(
      timestamp: DateTime.now(),
      price: price,
      volume: volume,
    ),
  );
}