getLatestBigDealsPeriodic method
Obtain filled orders worth more than 500,000 USD within the last 24h, periodically.
period
must be one of the followin strings :
'5min', '15min', '30min', '1h', '4h', '1d'
https://bybit-exchange.github.io/docs/inverse/#t-marketopeninterest
Implementation
void getLatestBigDealsPeriodic(
{required String symbol, int? limit, required Duration period}) {
log.d('ByBitRest.getLatestBigDealsPeriodic');
streamGroup!.add(Stream.periodic(period, (_) {
return getLatestBigDeals(symbol: symbol, limit: limit);
}).asyncMap((event) async => await event));
}