isSellOrderCompleted = async (logger, symbol) => {
  // Get trade order
  const gridTrade = await getSymbolGridTrade(logger, symbol);
  if (_.isEmpty(gridTrade)) {
    logger.info('There is no grid trade for the symbol. Do not process.');
    return false;
  }

  const { sell } = gridTrade;
  if (_.isEmpty(sell)) {
    logger.info(
      'There is no sell order in the grid trade for the symbol. Do not process.'
    );
    return false;
  }

  const allExecuted = _.every(sell, s => s.executed);
  if (allExecuted) {
    logger.info(
      { sell, allExecuted },
      'All sell orders are executed. Delete last buy price.'
    );
    return true;
  }

  logger.info(
    { sell, allExecuted },
    'There is unexecuted sell order. Do not process.'
  );
  return false;
}
Check if sell order is completed

@param {*} logger
@param {*} symbol
@returns