processRemoveLastBuyPrice = async (
  logger,
  symbol,
  data,
  processMessage,
  extraMessages
) => {
  const refreshedOpenOrders = await getAndCacheOpenOrdersForSymbol(
    logger,
    symbol
  );
  if (refreshedOpenOrders.length > 0) {
    await Promise.all(
      refreshedOpenOrders.map(order =>
        binance.client.cancelOrder({
          symbol,
          orderId: order.orderId
        })
      )
    );
    logger.info(
      { refreshedOpenOrders, saveLog: true },
      'Cancelled all open orders before removing the last buy price.'
    );
    // Cache again.
    await getAndCacheOpenOrdersForSymbol(logger, symbol);
  }

  await removeLastBuyPrice(logger, symbol, data, processMessage, extraMessages);

  return setMessage(logger, data, processMessage);
}
Process removing last buy price

@param {*} logger
@param {*} symbol
@param {*} data
@param {*} processMessage
@param {*} extraMessages
@returns