getWalletFundRecordsPeriodic method
void
getWalletFundRecordsPeriodic({})
Get wallet fund records periodically. https://bybit-exchange.github.io/docs/inverse/#t-walletrecords
Implementation
void getWalletFundRecordsPeriodic(
{String? currency,
int? startTimestamp,
int? endTimestamp,
String? walletFundType,
int? page,
int? limit,
required Duration period}) {
log.d('ByBitRest.getWalletFundRecordsPeriodic');
streamGroup!.add(Stream.periodic(period, (_) {
return getWalletFundRecords(
currency: currency,
startTimestamp: startTimestamp,
endTimestamp: endTimestamp,
walletFundType: walletFundType,
page: page,
limit: limit);
}).asyncMap((event) async => await event));
}