cancelAllActiveOrdersPeriodic method
Cancel all active orders that are unfilled or partially filled periodically. Fully filled orders cannot be cancelled. https://bybit-exchange.github.io/docs/inverse/#t-cancelallactive
Implementation
void cancelAllActiveOrdersPeriodic(
{required String symbol, required Duration period}) {
log.d('ByBitRest.cancelAllActiveOrdersPeriodic');
streamGroup!.add(Stream.periodic(period, (_) {
return cancelAllActiveOrders(symbol: symbol);
}).asyncMap((event) async => await event));
}