saveSymbolGridTradeArchive = async (logger, key = null, data = {}) => {
  if (key === null) {
    // If key is not provided, then return empty.
    return {};
  }

  logger.info({ data, saveLog: true }, 'The grid trade has been archived.');

  const result = await mongo.upsertOne(
    logger,
    'trailing-trade-grid-trade-archive',
    {
      key
    },
    {
      key,
      ...data
    }
  );

  // Refresh configuration
  const { symbol } = data;
  await cache.hdel('trailing-trade-configurations', symbol);

  return result;
}
Archive symbol grid trade to mongodb

@param {*} logger
@param {*} key
@param {*} gridTrade