updateLastBuyPrice = async (logger, ws, symbol, lastBuyPrice) => {
  const updateLastBuyPriceFn = async () => {
    // Retrieve symbol info
    const cachedSymbolInfo =
      JSON.parse(
        await cache.hget('trailing-trade-symbols', `${symbol}-symbol-info`)
      ) || {};

    if (_.isEmpty(cachedSymbolInfo) === true) {
      PubSub.publish('frontend-notification', {
        type: 'error',
        title:
          `The bot could not retrieve the cached symbol information for ${symbol}.` +
          ` Wait for the symbol information to be cached and try again.`
      });

      ws.send(
        JSON.stringify({
          result: false,
          type: 'symbol-update-last-buy-price-result',
          message:
            `The bot could not retrieve the cached symbol information for ${symbol}.` +
            ` Wait for the symbol information to be cached and try again.`
        })
      );
      return false;
    }

    const { baseAsset } = cachedSymbolInfo;
    // Retrieve account info from cache
    const accountInfo = await getAccountInfo(logger);

    // Get asset balances
    const baseAssetBalance = accountInfo.balances.filter(
      b => b.asset === baseAsset
    )[0] || {
      asset: baseAsset,
      free: 0,
      locked: 0,
      total: 0,
      estimatedValue: 0
    };

    // Calculate total quantity
    const baseAssetTotalBalance =
      parseFloat(baseAssetBalance.free) + parseFloat(baseAssetBalance.locked);

    await saveLastBuyPrice(logger, symbol, {
      lastBuyPrice,
      quantity: baseAssetTotalBalance
    });

    return true;
  };

  const PubSubFn = async () => {
    PubSub.publish('frontend-notification', {
      type: 'success',
      title: `The last buy price for ${symbol} has been configured successfully.`
    });
  };

  queue.execute(logger, symbol, {
    correlationId: _.get(logger, 'fields.correlationId', ''),
    preprocessFn: updateLastBuyPriceFn,
    processFn: executeTrailingTrade,
    postprocessFn: PubSubFn
  });

  ws.send(
    JSON.stringify({
      result: true,
      type: 'symbol-update-result',
      message: `The last buy price for ${symbol} has been configured successfully.`
    })
  );

  return true;
}
Update last buy price

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