In this paper, we consider a two-dimensional Black--Scholes model of financial mathematics. Using Lie theory, we determine the generators of the symmetrygroup of the corresponding Feynman--Kac partial differential equation.