updateConditionalOrderPeriodic method
void
updateConditionalOrderPeriodic({})
Update conditional order periodically. https://bybit-exchange.github.io/docs/inverse/#t-replacecond
Implementation
void updateConditionalOrderPeriodic(
{required String symbol,
String? stopOrderId,
String? orderLinkId,
int? newOrderQuantity,
double? newOrderPrice,
double? newTriggerPrice,
required Duration period}) {
log.d('ByBitRest.updateConditionalOrderPeriodic');
streamGroup!.add(Stream.periodic(period, (_) {
return updateConditionalOrder(
symbol: symbol,
stopOrderId: stopOrderId,
orderLinkId: orderLinkId,
newOrderQuantity: newOrderQuantity,
newOrderPrice: newOrderPrice,
newTriggerPrice: newTriggerPrice);
}).asyncMap((event) async => await event));
}