slackMessageOrderResult = async (
  logger,
  symbol,
  side,
  order,
  orderResult
) => {
  const { type: rawType, marketType } = order[side];
  let type = rawType.toUpperCase();

  if (type === 'MARKET') {
    type += ` - ${marketType.toUpperCase()}`;
  }

  logger.info(
    { side, order, orderResult, saveLog: true },
    `The manual ${side.toUpperCase()} order has been placed.`
  );

  PubSub.publish('frontend-notification', {
    type: 'success',
    title:
      `The ${side} order for ${symbol} has been placed successfully.` +
      ` If the order is not executed, it should appear soon.`
  });

  slack.sendMessage(
    `*${symbol}* Manual ${side.toUpperCase()} Result: *${type}*\n` +
      `- Order Result: \`\`\`${JSON.stringify(
        orderResult,
        undefined,
        2
      )}\`\`\``,
    { symbol, apiLimit: getAPILimit(logger) }
  );
}
Send slack message for order result

@param {*} logger
@param {*} symbol
@param {*} side
@param {*} order
@param {*} orderResult