updateActiveOrder method

Future<Map<String, dynamic>?> updateActiveOrder({
  1. required String symbol,
  2. String? orderId,
  3. String? orderLinkId,
  4. int? newOrderQuantity,
  5. double? newOrderPrice,
})

Replace order can modify/amend your active orders. https://bybit-exchange.github.io/docs/inverse/#t-replaceactive

Implementation

Future<Map<String, dynamic>?> updateActiveOrder(
    {required String symbol,
    String? orderId,
    String? orderLinkId,
    int? newOrderQuantity,
    double? newOrderPrice}) async {
  log.i('Replace/update active order.');
  return await rest.updateActiveOrder(
      symbol: symbol,
      orderId: orderId,
      orderLinkId: orderLinkId,
      newOrderQuantity: newOrderQuantity,
      newOrderPrice: newOrderPrice);
}