getAssetExchangeRecordsPeriodic method

void getAssetExchangeRecordsPeriodic({
  1. String? direction,
  2. int? from,
  3. int? limit,
  4. required Duration period,
})

Implementation

void getAssetExchangeRecordsPeriodic(
    {String? direction, int? from, int? limit, required Duration period}) {
  log.d('ByBitRest.getAssetExchangeRecordsPeriodic');
  streamGroup!.add(Stream.periodic(period, (_) {
    return getAssetExchangeRecords(
        direction: direction, from: from, limit: limit);
  }).asyncMap((event) async => await event));
}