docs: @Nonnull
    public BitmexPrivateOrder replaceOrder(@Nonnull final BitmexReplaceOrderParameters parameters)
        throws ExchangeException {
      return updateRateLimit(
          () ->
              bitmex.replaceOrder(
                  apiKey,
                  exchange.getNonceFactory(),
                  signatureCreator,
                  parameters.getClOrdId() != null ? null : parameters.getOrderId(),
                  parameters.getOrigClOrdId(),
                  parameters.getClOrdId(),
                  parameters.getSimpleOrderQuantity(),
                  parameters.getOrderQuantity(),
                  parameters.getSimpleLeavesQuantity(),
                  parameters.getLeavesQuantity(),
                  parameters.getPrice(),
                  parameters.getStopPrice(),
                  parameters.getPegOffsetValue(),
                  parameters.getText()));
    }