getSymbolsInfoPeriodic method

void getSymbolsInfoPeriodic({
  1. required Duration period,
})

Get the information for all symbols periodically. https://bybit-exchange.github.io/docs/inverse/?console#t-querysymbol

Implementation

void getSymbolsInfoPeriodic({required Duration period}) {
  log.d('ByBitRest.getSymbolsInfoPeriodic');
  streamGroup!.add(Stream.periodic(period, (_) {
    return getSymbolsInfo();
  }).asyncMap((event) async => await event));
}