updateConditionalOrderPeriodic method

void updateConditionalOrderPeriodic({
  1. required String symbol,
  2. String? stopOrderId,
  3. String? orderLinkId,
  4. int? newOrderQuantity,
  5. double? newOrderPrice,
  6. double? newTriggerPrice,
  7. required Duration period,
})

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.i('Update conditional order periodically.');
  rest.updateConditionalOrderPeriodic(
      symbol: symbol,
      stopOrderId: stopOrderId,
      orderLinkId: orderLinkId,
      newOrderQuantity: newOrderQuantity,
      newOrderPrice: newOrderPrice,
      newTriggerPrice: newTriggerPrice,
      period: period);
}