saveSymbolGridTrade = async (logger, symbol = null, gridTrade = {}) => {
  if (symbol === null) {
    // If symbol is not provided, then return empty.
    return {};
  }
  logger.info({ gridTrade, saveLog: true }, 'The grid trade has been updated.');

  const result = await mongo.upsertOne(
    logger,
    'trailing-trade-grid-trade',
    {
      key: `${symbol}`
    },
    {
      key: `${symbol}`,
      ...gridTrade
    }
  );

  await cache.hdel('trailing-trade-configurations', symbol);

  return result;
}
Save symbol grid trade to mongodb

@param {*} logger
@param {*} symbol
@param {*} gridTrade