saveLastBuyPrice = async (logger, symbol, { lastBuyPrice, quantity }) => {
  logger.info(
    { lastBuyPrice, quantity, saveLog: true },
    'The last buy price has been saved.'
  );
  const result = await mongo.upsertOne(
    logger,
    'trailing-trade-symbols',
    { key: `${symbol}-last-buy-price` },
    {
      key: `${symbol}-last-buy-price`,
      lastBuyPrice,
      quantity
    }
  );

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

  return result;
}
Save last buy price to mongodb

@param {*} logger
@param {*} symbol
@param {*} param2