getOrderBookPeriodic method
Add a periodic call to the order book REST API. https://bybit-exchange.github.io/docs/inverse/?console#t-orderbook
Implementation
void getOrderBookPeriodic(
{required String symbol, required Duration period}) {
log.d('ByBitRest.getOrderBookPeriodic');
streamGroup!.add(Stream.periodic(period, (_) {
return getOrderBook(symbol: symbol);
}).asyncMap((event) async => await event));
}