getServerTimePeriodic method
Get the server time (used for synchronization purposes for example) periodically. https://bybit-exchange.github.io/docs/inverse/?console#t-servertime
Implementation
void getServerTimePeriodic({required Duration period}) {
log.d('ByBitRest.getServerTimePeriodic');
streamGroup!.add(Stream.periodic(period, (_) {
return getServerTime();
}).asyncMap((event) async => await event));
}