getAssetExchangeRecordsPeriodic method
void
getAssetExchangeRecordsPeriodic({})
Get asset exchange records periodically. https://bybit-exchange.github.io/docs/inverse/#t-assetexchangerecords
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));
}