getWalletBalancePeriodic method

void getWalletBalancePeriodic({
  1. String? currency,
  2. required Duration period,
})

Implementation

void getWalletBalancePeriodic({String? currency, required Duration period}) {
  log.d('ByBitRest.getWalletBalancePeriodic');
  streamGroup!.add(Stream.periodic(period, (_) {
    return getWalletBalance(currency: currency);
  }).asyncMap((event) async => await event));
}